SensorReadingType SensorReadingType SensorReadingType SensorReadingType SensorReadingType Enum

Definition

Specifies the sensor reading type.

public : enum class SensorReadingType
enum class winrt::Windows::Devices::Sensors::SensorReadingType : int32_t
public enum SensorReadingType
Public Enum SensorReadingType
var value = Windows.Devices.Sensors.SensorReadingType.absolute;
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Fields

Absolute Absolute Absolute Absolute Absolute 0

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

Relative Relative Relative Relative 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.