StepCounter.GetCurrentReadingAsync Method

Gets the current walking and running step counts since the last Motion Data reset.

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

function GetCurrentReadingAsync();

Return Value

Type: IAsyncOperation<StepCounterReading>
The current reading of the sensor.

Implements

IStepCounter.GetCurrentReadingAsync()

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: SensorDeactivated, GeneralFailure. SenseDisabled, LocationDisabled
Show: