StepCounter.GetDefaultAsync Method

Gets the default implementation.

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

Lumia.Sense.StepCounter.GetDefaultAsync = function();

Return Value

Type: IAsyncOperation<StepCounter>
The default implementation. Throws exception if sensor is not supported on the device.

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: SenseNotAvailable, SenseDisabled, LocationDisabled, IncompatibleSDK, GeneralFailure