Dela via


SensorDataThresholdTriggerDetails Class

Definition

Provides data for what sensor triggered the data threshold monitoring task.

public ref class SensorDataThresholdTriggerDetails sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SensorDataThresholdTriggerDetails final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SensorDataThresholdTriggerDetails
Public NotInheritable Class SensorDataThresholdTriggerDetails
Inheritance
Object Platform::Object IInspectable SensorDataThresholdTriggerDetails
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)

Remarks

In order to support the background trigger of sensors based on data threshold triggers, you will need to implement a method like GetReadingsFromTriggerDetails. You will need to do this for every sensor you want to respond to the data threshold trigger.

Properties

DeviceId

Gets the device identifier for the device that activated the threshold trigger.

SensorType

Gets the type of sensor associated with the threshold trigger.

Applies to