Share via


SensorReadingType Enum

Definition

Specifies the sensor reading type.

public enum class SensorReadingType
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class SensorReadingType
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum SensorReadingType
var value = Windows.Devices.Sensors.SensorReadingType.absolute
Public Enum SensorReadingType
Inheritance
SensorReadingType
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Absolute 0

The sensor reading type is absolute. Absolute sensors provide a reading that uses all of the sensors available.

Relative 1

The sensor reading type is relative. Relative sensors provide a reading that is accurate under most conditions, but might not be as accurate as it attempts to not use all sensors available. See the Remarks for more information.

Remarks

To understand the difference between an Absolute and a Relative sensor, consider the OrientationSensor. In order to provide an absolute reading, an Absolute OrientationSensor will use an accelerometer, a gyrometer, and a magnetometer to determine its orientation with respect to magnetic North. In contrast, a relative OrientationSensor will only use an accelerometer and gyrometer (no magnetometer), measuring its orientation relative to where the sensor is first instantiated.

Applies to