Most visited

Recently visited

Added in API level 24

SensorManager.DynamicSensorCallback

public static abstract class SensorManager.DynamicSensorCallback
extends Object

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


用于在动态传感器连接或断开连接时从SensorManager接收通知。

Summary

Public constructors

SensorManager.DynamicSensorCallback()

Public methods

void onDynamicSensorConnected(Sensor sensor)

当有一个动态传感器连接到系统时调用。

void onDynamicSensorDisconnected(Sensor sensor)

当有动态传感器与系统断开连接时调用。

Inherited methods

From 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)

当有一个动态传感器连接到系统时调用。

Parameters
sensor Sensor: the newly connected sensor. See Sensor.

onDynamicSensorDisconnected

Added in API level 24
void onDynamicSensorDisconnected (Sensor sensor)

当有动态传感器与系统断开连接时调用。

Parameters
sensor Sensor: the disconnected sensor. See Sensor.

Hooray!