StepCounter.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

public IAsyncOperation<StepCount> GetStepCountForRangeAsync(
    DateTimeOffset timestamp,
    TimeSpan span
)
'Declaration
Public Function GetStepCountForRangeAsync ( 
    timestamp As DateTimeOffset,
    span As TimeSpan
) As IAsyncOperation(Of StepCount)
public:
virtual IAsyncOperation<StepCount^>^ GetStepCountForRangeAsync(
    [InAttribute] DateTimeOffset timestamp, 
    [InAttribute] TimeSpan span
) sealed
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.

Implements

IStepCounter.GetStepCountForRangeAsync(DateTimeOffset, TimeSpan)

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

StepCounter Class

StepCounter.StepCounter Members

Lumia.Sense Namespace