hasSensor

fun hasSensor(sensorType: SensorType): Boolean

Indicates whether device has provided sensor type.

Return

true if sensor exists, false otherwise.

Parameters

sensorType

a sensor type.