SensorManager

Functions

Link copied to clipboard
abstract fun getSensorIdentifier(): String
Link copied to clipboard
abstract fun isAvailable(): Result<Boolean>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun readLatestData(type: SensorDataType): Result<SensorMeasurement?>
Link copied to clipboard
abstract suspend fun requestAuthorization(): Result<Boolean>
Link copied to clipboard
abstract suspend fun revokeAuthorization(): Result<Unit>
Link copied to clipboard
abstract suspend fun startRecording(type: List<SensorDataType>): Boolean
Link copied to clipboard
abstract suspend fun stopRecording(): Boolean