Class SetSensorOverrideEnabledCommandSettings
Overrides a platform sensor of a given type. If |enabled| is true, calls to Sensor.start() will use a virtual sensor as backend rather than fetching data from a real hardware sensor. Otherwise, existing virtual sensor-backend Sensor objects will fire an error event and new calls to Sensor.start() will attempt to use a real sensor instead.
public sealed class SetSensorOverrideEnabledCommandSettings : ICommand
- Inheritance
-
SetSensorOverrideEnabledCommandSettings
- Implements
- Inherited Members
Properties
CommandName
Gets the name of the command.
[JsonIgnore]
public string CommandName { get; }
Property Value
Enabled
Gets or sets the enabled
[JsonPropertyName("enabled")]
public bool Enabled { get; set; }
Property Value
Metadata
Gets or sets the metadata
[JsonPropertyName("metadata")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public SensorMetadata? Metadata { get; set; }
Property Value
Type
Gets or sets the type
[JsonPropertyName("type")]
public SensorType Type { get; set; }