| Constants | ||
|---|---|---|
| int | INVALID_ID | |
| Public Constructors | |
|---|---|
|
AccessorySensorManager(Context context, java.lang.String hostAppPackageName)
Create sensor manager for a host application. |
|
| Public Methods | |
|---|---|
| AccessorySensor |
getSensor(java.lang.String sensorType)
Get sensor. |
| AccessorySensor |
getSensor(java.lang.String sensorType, boolean delicate)
Get sensor with a certain delicate class. |
Constant Value: -1 (0xffffffffffffffff)
Create sensor manager for a host application.
| context | The context. |
|---|---|
| hostAppPackageName | The host application package name. |
Get sensor.
| sensorType | The string identifying the sensor type. |
|---|
The sensor or null if no sensor found for the given value.
Get sensor with a certain delicate class.
| sensorType | The string identifying the sensor type. |
|---|---|
| delicate | True if delicate, false otherwise. |
The sensor or null if no sensor found for the given value.
Manages sensors on an accessory.