PedometerDataThreshold PedometerDataThreshold PedometerDataThreshold PedometerDataThreshold Class

Definition

A threshold for the Pedometer sensor. When the threshold conditions are met, the sensor trigger will activate.

public : sealed class PedometerDataThreshold : ISensorDataThresholdpublic sealed class PedometerDataThreshold : ISensorDataThresholdPublic NotInheritable Class PedometerDataThreshold Implements ISensorDataThreshold// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)

Constructors

PedometerDataThreshold(Pedometer, Int32) PedometerDataThreshold(Pedometer, Int32) PedometerDataThreshold(Pedometer, Int32) PedometerDataThreshold(Pedometer, Int32)

Creates a PedometerDataThreshold object.

public : PedometerDataThreshold(Pedometer sensor, int stepGoal)public PedometerDataThreshold(Pedometer sensor, Int32 stepGoal)Public Sub New(sensor As Pedometer, stepGoal As Int32)// You can use this method in JavaScript.
Parameters
sensor
Pedometer Pedometer Pedometer Pedometer

The pedometer sensor.

stepGoal
int Int32 Int32 Int32

The number of steps before the threshold is exceeded and the background task is activated.

Remarks

The value of stepGoal needs to be greater than 0.