IStepCounter.GetStepCountForRangeAsync Method

Gets the step count for given time range.

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

function GetStepCountForRangeAsync(timestamp, span);

Parameters

timestamp
Type: System.DateTimeOffset
start time
span
Type: System.TimeSpan
time span

Return Value

Type: IAsyncOperation<StepCount>
Step count for the given range. Returns null if no step count is available for the given range.

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: