PedometerReading
PedometerReading
PedometerReading
PedometerReading
Class
Definition
Represents a pedometer reading.
public : sealed class PedometerReading : IPedometerReadingpublic sealed class PedometerReading : IPedometerReadingPublic NotInheritable Class PedometerReading Implements IPedometerReading// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
| Capabilities |
activity
|
Remarks
This object is accessed when you request the sensor history. It is also accessed when you retrieve the Reading property of the PedometerReadingChangedEventArgs object in the event callback method.
Properties
CumulativeSteps CumulativeSteps CumulativeSteps CumulativeSteps
Gets the total number of steps taken for this pedometer reading.
public : int CumulativeSteps { get; }public int CumulativeSteps { get; }Public ReadOnly Property CumulativeSteps As int// You can use this property in JavaScript.
- Value
- int int int int
The total number of steps taken.
Additional features and requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
| Capabilities |
activity
|
CumulativeStepsDuration CumulativeStepsDuration CumulativeStepsDuration CumulativeStepsDuration
Gets the amount of time that has elapsed for this pedometer reading.
public : TimeSpan CumulativeStepsDuration { get; }public TimeSpan CumulativeStepsDuration { get; }Public ReadOnly Property CumulativeStepsDuration As TimeSpan// You can use this property in JavaScript.
- Value
- TimeSpan TimeSpan TimeSpan TimeSpan
The amount of elapsed time for the current reading of cumulative steps. This value is given in milliseconds.
Additional features and requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
| Capabilities |
activity
|
StepKind StepKind StepKind StepKind
Indicates the type of steps taken for this pedometer reading.
public : PedometerStepKind StepKind { get; }public PedometerStepKind StepKind { get; }Public ReadOnly Property StepKind As PedometerStepKind// You can use this property in JavaScript.
The type of step taken.
Additional features and requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
| Capabilities |
activity
|
Timestamp Timestamp Timestamp Timestamp
Gets the time for the most recent pedometer reading.
public : DateTime Timestamp { get; }public DateTimeOffset Timestamp { get; }Public ReadOnly Property Timestamp As DateTimeOffset// You can use this property in JavaScript.
- Value
- DateTime DateTimeOffset DateTimeOffset DateTimeOffset
The time when the pedometer reported the reading.
Additional features and requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
| Capabilities |
activity
|