ProximitySensor.GetReadingsFromTriggerDetails(SensorDataThresholdTriggerDetails) ProximitySensor.GetReadingsFromTriggerDetails(SensorDataThresholdTriggerDetails) ProximitySensor.GetReadingsFromTriggerDetails(SensorDataThresholdTriggerDetails) ProximitySensor.GetReadingsFromTriggerDetails(SensorDataThresholdTriggerDetails) ProximitySensor.GetReadingsFromTriggerDetails(SensorDataThresholdTriggerDetails) Method

Definition

Gets readings from the trigger details in background task.

public : static IVectorView<ProximitySensorReading> GetReadingsFromTriggerDetails(SensorDataThresholdTriggerDetails triggerDetails)
static IVectorView<ProximitySensorReading> GetReadingsFromTriggerDetails(SensorDataThresholdTriggerDetails triggerDetails) const;
public static IReadOnlyList<ProximitySensorReading> GetReadingsFromTriggerDetails(SensorDataThresholdTriggerDetails triggerDetails)
Public Shared Function GetReadingsFromTriggerDetails(triggerDetails As SensorDataThresholdTriggerDetails) As IReadOnlyList<ProximitySensorReading>(Of ProximitySensorReading)
var iVectorView = Windows.Devices.Sensors.ProximitySensor.getReadingsFromTriggerDetails(triggerDetails);

Parameters

triggerDetails
SensorDataThresholdTriggerDetails SensorDataThresholdTriggerDetails SensorDataThresholdTriggerDetails

The trigger details received from the background task.

Returns

IReadOnlyList<ProximitySensorReading> IReadOnlyList<ProximitySensorReading> IReadOnlyList<ProximitySensorReading>

The collection of proximity data retrieved from the trigger details.

Additional features and requirements

Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)

Remarks

SensorDataThresholdTriggerDetails objects are designed to be independent of the sensor that activated the background trigger. This enables you to support all of the sensors your are interested in with a single background task. In order to support this methodology, you need to define this method in all of your sensors that extract data from the background trigger.