IStepCounter.GetStepCountHistoryAsync Method
Returns time ordered list of step counts during given time period.
Namespace: Lumia.Sense
Assembly: Lumia.Sense (in Lumia.Sense.dll) Version: 255.255.255.255
Syntax
IAsyncOperation<IList<StepCounterReading>> GetStepCountHistoryAsync(
DateTimeOffset startTime,
TimeSpan span
)
'Declaration
Function GetStepCountHistoryAsync (
startTime As DateTimeOffset,
span As TimeSpan
) As IAsyncOperation(Of IList(Of StepCounterReading))
IAsyncOperation<IList<StepCounterReading^>^>^ GetStepCountHistoryAsync(
[InAttribute] DateTimeOffset startTime,
[InAttribute] TimeSpan span
)
function GetStepCountHistoryAsync(startTime, span);
Parameters
- startTime
Type: System.DateTimeOffset
start time
- span
Type: System.TimeSpan
time span
Return Value
Type: IAsyncOperation<IList<StepCounterReading>>
Step count history
Exceptions
Exception | Condition |
---|---|
COMException | All errors are thrown as instances of COMException. To get details about the error pass the HResult property of the exception to GetSenseError(Int32). This method can return the following SenseError enumeration values: InvalidParameter, SensorDeactivated, GeneralFailure, SenseDisabled, LocationDisabled |