The Wayback Machine - https://web.archive.org/web/20161107122741/https://developer.android.com/reference/android/hardware/SensorManager.DynamicSensorCallback.html
Skip to content

Most visited

Recently visited

navigation

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

ImageFrom class java.lang.Object

Public constructors

SensorManager.DynamicSensorCallback

Added in API level 24
SensorManager.DynamicSensorCallback ()

Public methods

onDynamicSensorConnected

Added in API level 24
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
void onDynamicSensorDisconnected (Sensor sensor)

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

Parameters
sensor Sensor: the disconnected sensor. See Sensor.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.