Share via


IStepCounter.GetStepCountAtAsync Method

Gets the step count at given time.

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

Syntax

IAsyncOperation<StepCounterReading> GetStepCountAtAsync(
    DateTimeOffset timestamp
)
'Declaration
Function GetStepCountAtAsync ( 
    timestamp As DateTimeOffset
) As IAsyncOperation(Of StepCounterReading)
IAsyncOperation<StepCounterReading^>^ GetStepCountAtAsync(
    [InAttribute] DateTimeOffset timestamp
)
function GetStepCountAtAsync(timestamp);

Parameters

Return Value

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

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