Windows.Devices.Sensors.Custom Namespace

Provides access to a custom sensor and its related data.

Classes

CustomSensor

Represents a custom sensor.

This class reuses the same ReadingChanged event mechanism and the same common properties (DeviceId, ReportInterval) as the Windows.Devices.Sensors classes (Accelerometer, Gyrometer, Magnetometer, and so on).

CustomSensorReading

Represents a property set of key/value pairs that contain the custom data sent from the sensor's driver to the app.

Each key is a string that represents a PROPERTYKEY. Each value can be an integer, boolean, float, or double.

CustomSensorReadingChangedEventArgs

Represents data for the reading– changed event of the custom sensor.

Remarks

Supports the ability for hardware manufactures to expose sensors that don’t have first class representations.

The CustomSensor, CustomSensorReadingChangedEventArgs, and CustomSensorReading classes are modeled on the Windows.Devices.Sensors classes (Accelerometer, Gyrometer, Magnetometer, and so on).

This namespace adds a list property of key/value pairs to each one of the native sensor "reading" classes. The list property is mapped on the CustomSensorReading class.

See also