StepCounter.IsSupportedAsync Method

Returns whether the sensor is supported by the device or not.

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

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

Return Value

Type: IAsyncOperation<Boolean>
true if the sensor is supported, false otherwise

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: LocationDisabled