Share via


Pedometer.GetSystemHistoryAsync Method

Definition

Overloads

GetSystemHistoryAsync(DateTime)

Asynchronously gets sensor readings from a specific time.

GetSystemHistoryAsync(DateTime, TimeSpan)

Asynchronously gets pedometer readings from a specific time and duration.

GetSystemHistoryAsync(DateTime)

Asynchronously gets sensor readings from a specific time.

public:
 static IAsyncOperation<IVectorView<PedometerReading ^> ^> ^ GetSystemHistoryAsync(DateTime fromTime);
/// [Windows.Foundation.Metadata.Overload("GetSystemHistoryAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<IVectorView<PedometerReading>> GetSystemHistoryAsync(DateTime const& fromTime);
[Windows.Foundation.Metadata.Overload("GetSystemHistoryAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IReadOnlyList<PedometerReading>> GetSystemHistoryAsync(System.DateTimeOffset fromTime);
function getSystemHistoryAsync(fromTime)
Public Shared Function GetSystemHistoryAsync (fromTime As DateTimeOffset) As IAsyncOperation(Of IReadOnlyList(Of PedometerReading))

Parameters

fromTime
DateTime DateTimeOffset

The time for which you want to retrieve the reading.

Returns

Asynchronously returns a list of PedometerReading objects that represent info about the sensor.

Attributes

See also

Applies to

GetSystemHistoryAsync(DateTime, TimeSpan)

Asynchronously gets pedometer readings from a specific time and duration.

public:
 static IAsyncOperation<IVectorView<PedometerReading ^> ^> ^ GetSystemHistoryAsync(DateTime fromTime, TimeSpan duration);
/// [Windows.Foundation.Metadata.Overload("GetSystemHistoryWithDurationAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<IVectorView<PedometerReading>> GetSystemHistoryAsync(DateTime const& fromTime, TimeSpan const& duration);
[Windows.Foundation.Metadata.Overload("GetSystemHistoryWithDurationAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IReadOnlyList<PedometerReading>> GetSystemHistoryAsync(System.DateTimeOffset fromTime, System.TimeSpan duration);
function getSystemHistoryAsync(fromTime, duration)
Public Shared Function GetSystemHistoryAsync (fromTime As DateTimeOffset, duration As TimeSpan) As IAsyncOperation(Of IReadOnlyList(Of PedometerReading))

Parameters

fromTime
DateTime DateTimeOffset

The time for which you want to retrieve the reading.

duration
TimeSpan TimeSpan

The duration over which you want to retrieve data.

Returns

Asynchronously returns a list of PedometerReading objects that represent info about the sensor.

Attributes

See also

Applies to