| java.lang.Object | |
| ↳ | android.hardware.Sensor |
Class representing a sensor. Use getSensorList(int)
to get the list of available Sensors.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | TYPE_ACCELEROMETER | A constant describing an accelerometer sensor type. | |||||||||
| int | TYPE_ALL | A constant describing all sensor types. | |||||||||
| int | TYPE_GYROSCOPE | A constant describing a gyroscope sensor type | |||||||||
| int | TYPE_LIGHT | A constant describing an light sensor type. | |||||||||
| int | TYPE_MAGNETIC_FIELD | A constant describing a magnetic field sensor type. | |||||||||
| int | TYPE_ORIENTATION |
This constant is deprecated.
use SensorManager.getOrientation() instead.
|
|||||||||
| int | TYPE_PRESSURE | A constant describing a pressure sensor type | |||||||||
| int | TYPE_PROXIMITY | A constant describing an proximity sensor type. | |||||||||
| int | TYPE_TEMPERATURE | A constant describing a temperature sensor type | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
| |||||||||||
A constant describing an accelerometer sensor type.
See SensorEvent
for more details.
A constant describing all sensor types.
A constant describing a gyroscope sensor type
A constant describing an light sensor type.
See SensorEvent
for more details.
A constant describing a magnetic field sensor type.
See SensorEvent
for more details.
This constant is deprecated.
use SensorManager.getOrientation() instead.
A constant describing an orientation sensor type.
See SensorEvent
for more details.
A constant describing a pressure sensor type
A constant describing an proximity sensor type.
See SensorEvent
for more details.
A constant describing a temperature sensor type