StepCounter.GetStepCountAtAsync Method

Gets the step count at given time.

Namespace: Lumia.Sense
Assembly: Lumia.Sense (in Lumia.Sense.dll) Version: 255.255.255.255

function GetStepCountAtAsync(timestamp);

Parameters

timestamp
Type: System.DateTimeOffset
time to get the step count for

Return Value

Type: IAsyncOperation<StepCounterReading>
Step count at the given time. Returns null if no step count is available for the given time.

Implements

IStepCounter.GetStepCountAtAsync(DateTimeOffset)

ExceptionCondition
COMExceptionAll 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
Show: