Sensor.isAvailable

Check if a sensor is available on the underlying platform.

class Sensor
static
bool
isAvailable

Parameters

sensor Type

Sensor to check

Return Value

Type: bool

true if the sensor is available, false otherwise.

Meta