IStepCounter.GetStepCountAtAsync Method

Gets the step count at given time.

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

function GetStepCountAtAsync(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.

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