|
Build 1.1_r1 (from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.hardware.Sensor
public class Sensor
Class representing a sensor. Use SensorManager.getSensorList(int)
to get the list of available Sensors.
| Field Summary | |
|---|---|
static int |
TYPE_ACCELEROMETER
A constant describing an accelerometer sensor type. |
static int |
TYPE_ALL
A constant describing all sensor types. |
static int |
TYPE_GYROSCOPE
A constant describing a gyroscope sensor type |
static int |
TYPE_LIGHT
A constant describing a light sensor type |
static int |
TYPE_MAGNETIC_FIELD
A constant describing a magnetic field sensor type. |
static int |
TYPE_ORIENTATION
A constant describing an orientation sensor type. |
static int |
TYPE_PRESSURE
A constant describing a pressure sensor type |
static int |
TYPE_PROXIMITY
A constant describing a proximity sensor type |
static int |
TYPE_TEMPERATURE
A constant describing a temperature sensor type |
| Constructor Summary | |
|---|---|
Sensor()
|
|
| Method Summary | |
|---|---|
(package private) int |
getHandle()
|
(package private) int |
getLegacyType()
|
float |
getMaximumRange()
|
String |
getName()
|
float |
getPower()
|
float |
getResolution()
|
int |
getType()
|
String |
getVendor()
|
int |
getVersion()
|
(package private) void |
setLegacyType(int legacyType)
|
(package private) void |
setRange(float max,
float res)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_ACCELEROMETER
SensorEvent
for more details.
public static final int TYPE_MAGNETIC_FIELD
SensorEvent
for more details.
public static final int TYPE_ORIENTATION
SensorEvent
for more details.
public static final int TYPE_GYROSCOPE
public static final int TYPE_LIGHT
public static final int TYPE_PRESSURE
public static final int TYPE_TEMPERATURE
public static final int TYPE_PROXIMITY
public static final int TYPE_ALL
| Constructor Detail |
|---|
Sensor()
| Method Detail |
|---|
public String getName()
public String getVendor()
public int getType()
public int getVersion()
public float getMaximumRange()
public float getResolution()
public float getPower()
int getHandle()
void setRange(float max,
float res)
void setLegacyType(int legacyType)
int getLegacyType()
|
Build 1.1_r1 (from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||