lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey

SensorManager.DynamicSensorCallback

public static abstract class SensorManager.DynamicSensorCallback
extends Object

java.lang.Object
   ↳ android.hardware.SensorManager.DynamicSensorCallback


Used for receiving notifications from the SensorManager when dynamic sensors are connected or disconnected.

Summary

Public constructors

SensorManager.DynamicSensorCallback()

Public methods

void onDynamicSensorConnected(Sensor sensor)

Called when there is a dynamic sensor being connected to the system.

void onDynamicSensorDisconnected(Sensor sensor)

Called when there is a dynamic sensor being disconnected from the system.

Inherited methods

Public constructors

SensorManager.DynamicSensorCallback

added in API level 24
public SensorManager.DynamicSensorCallback ()

Public methods

onDynamicSensorConnected

added in API level 24
public void onDynamicSensorConnected (Sensor sensor)

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
public void onDynamicSensorDisconnected (Sensor sensor)

Called when there is a dynamic sensor being disconnected from the system.

Parameters
sensor Sensor: the disconnected sensor. See Sensor.