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

Syntax

IAsyncOperation<StepCount> GetStepCountForRangeAsync(
    DateTimeOffset timestamp,
    TimeSpan span
)
'Declaration
Function GetStepCountForRangeAsync ( 
    timestamp As DateTimeOffset,
    span As TimeSpan
) As IAsyncOperation(Of StepCount)
IAsyncOperation<StepCount^>^ GetStepCountForRangeAsync(
    [InAttribute] DateTimeOffset timestamp, 
    [InAttribute] TimeSpan span
)
function GetStepCountForRangeAsync(timestamp, span);

Parameters

Return Value

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

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

See Also

IStepCounter Interface

IStepCounter.IStepCounter Members

Lumia.Sense Namespace