Added in API level 24
DynamicSensorCallback
abstract class DynamicSensorCallback
kotlin.Any | |
↳ | android.hardware.SensorManager.DynamicSensorCallback |
Used for receiving notifications from the SensorManager when dynamic sensors are connected or disconnected.
Summary
Public constructors | |
---|---|
Public methods | |
---|---|
open Unit |
onDynamicSensorConnected(sensor: Sensor!) Called when there is a dynamic sensor being connected to the system. |
open Unit |
onDynamicSensorDisconnected(sensor: Sensor!) Called when there is a dynamic sensor being disconnected from the system. |
Public constructors
DynamicSensorCallback
DynamicSensorCallback()
Public methods
onDynamicSensorConnected
Added in API level 24
open fun onDynamicSensorConnected(sensor: Sensor!): Unit
Called when there is a dynamic sensor being connected to the system.
Parameters | |
---|---|
sensor |
Sensor!: the newly connected sensor. See Sensor . |
onDynamicSensorDisconnected
Added in API level 24
open fun onDynamicSensorDisconnected(sensor: Sensor!): Unit
Called when there is a dynamic sensor being disconnected from the system.
Parameters | |
---|---|
sensor |
Sensor!: the disconnected sensor. See Sensor . |