Pedometer Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides an interface for a pedometer to measure the number of steps taken.
For an example implemenation, see the pedometer sample.
public ref class Pedometer sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class Pedometer final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class Pedometer
Public NotInheritable Class Pedometer
- Inheritance
- Attributes
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Uwaga
This class is not supported in JavaScript
Windows version | SDK version | Value added |
---|---|---|
1511 | 10586 | GetCurrentReadings |
1511 | 10586 | GetReadingsFromTriggerDetails |
Device |
Gets the device identifier. |
Minimum |
The smallest report interval that is supported by this pedometer. |
Power |
Gets the power that the sensor consumes. |
Report |
Gets or sets the current report interval for the pedometer. |
From |
Obtains the pedometer from its identifier. |
Get |
Gets the current step information from the pedometer sensor. |
Get |
Asynchronously obtains the default pedometer. |
Get |
Gets the device selector. |
Get |
Gets readings from the trigger details in background task. |
Get |
Asynchronously gets pedometer readings from a specific time and duration. |
Get |
Asynchronously gets sensor readings from a specific time. |
Reading |
Occurs each time the pedometer reports a new value. |