Share via


PedometerReading Class

Definition

Represents a pedometer reading.

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

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App 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

Gets the total number of steps taken for this pedometer reading.

CumulativeStepsDuration

Gets the amount of time that has elapsed for this pedometer reading.

StepKind

Indicates the type of steps taken for this pedometer reading.

Timestamp

Gets the time for the most recent pedometer reading.

Applies to