Pedometer Pedometer Pedometer Pedometer Pedometer Class

Definition

Provides an interface for a pedometer to measure the number of steps taken.

For an example implemenation, see the pedometer sample.

public : sealed class Pedometer
struct winrt::Windows::Devices::Sensors::Pedometer
public sealed class Pedometer
Public NotInheritable Class Pedometer
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Note

This class is not supported in JavaScript

Version history

Windows version SDK version Value added
1511 10586 GetCurrentReadings
1511 10586 GetReadingsFromTriggerDetails

Properties

DeviceId DeviceId DeviceId DeviceId DeviceId

Gets the device identifier.

MinimumReportInterval MinimumReportInterval MinimumReportInterval MinimumReportInterval MinimumReportInterval

The smallest report interval that is supported by this pedometer.

PowerInMilliwatts PowerInMilliwatts PowerInMilliwatts PowerInMilliwatts PowerInMilliwatts

Gets the power that the sensor consumes.

ReportInterval ReportInterval ReportInterval ReportInterval ReportInterval

Gets or sets the current report interval for the pedometer.

Methods

FromIdAsync(String) FromIdAsync(String) FromIdAsync(String) FromIdAsync(String) FromIdAsync(String)

Obtains the pedometer from its identifier.

GetCurrentReadings() GetCurrentReadings() GetCurrentReadings() GetCurrentReadings() GetCurrentReadings()

Gets the current step information from the pedometer sensor.

GetDefaultAsync() GetDefaultAsync() GetDefaultAsync() GetDefaultAsync() GetDefaultAsync()

Asynchronously obtains the default pedometer.

GetDeviceSelector() GetDeviceSelector() GetDeviceSelector() GetDeviceSelector() GetDeviceSelector()

Gets the device selector.

GetReadingsFromTriggerDetails(SensorDataThresholdTriggerDetails) GetReadingsFromTriggerDetails(SensorDataThresholdTriggerDetails) GetReadingsFromTriggerDetails(SensorDataThresholdTriggerDetails) GetReadingsFromTriggerDetails(SensorDataThresholdTriggerDetails) GetReadingsFromTriggerDetails(SensorDataThresholdTriggerDetails)

Gets readings from the trigger details in background task.

GetSystemHistoryAsync(DateTime) GetSystemHistoryAsync(DateTime) GetSystemHistoryAsync(DateTime) GetSystemHistoryAsync(DateTime) GetSystemHistoryAsync(DateTime)

Asynchronously gets sensor readings from a specific time.

GetSystemHistoryAsync(DateTime, TimeSpan) GetSystemHistoryAsync(DateTime, TimeSpan) GetSystemHistoryAsync(DateTime, TimeSpan) GetSystemHistoryAsync(DateTime, TimeSpan) GetSystemHistoryAsync(DateTime, TimeSpan)

Asynchronously gets pedometer readings from a specific time and duration.

Events

ReadingChanged ReadingChanged ReadingChanged ReadingChanged ReadingChanged

Occurs each time the pedometer reports a new value.

See also