SensorOptions Class

The options of a sensor object (https://w3c.github.io/sensors/#dictdef-sensoroptions).

public class SensorOptions

Constructors

NameDescription
SensorOptions()

SensorOptions()

public SensorOptions()

No documentation is available.

Properties

NameDescription
FrequencyGets the requested sampling frequency, in Hz. It is clamped to the bounds of the sensor type and of the sensor of the device when the sensor starts; the default is 5 Hz.

Frequency

Sensor.cs

Gets the requested sampling frequency, in Hz. It is clamped to the bounds of the sensor type and of the sensor of the device when the sensor starts; the default is 5 Hz.

public double? Frequency { get; init; }