|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sonyericsson.extras.liveware.aef.sensor.Sensor
public class Sensor
Sensor data is sent over a LocalSocket. In order to start communication the extension
should setup a LocalServerSocket android.net.LocalServerSocket
in listening mode and send the Sensor.Intents.SENSOR_REGISTER_LISTENER_INTENT intent.
The capability API can be used to query the host application for supported sensors.
If multiple sensors are used, multiple LocalServerSocket objects must also be used since
one sensor is bound to exactly one LocalServerSocket.
Sensor.SensorAccuracy
| Nested Class Summary | |
|---|---|
static interface |
Sensor.Intents
Intents sent between Sensor Extensions and Accessory Host Applications |
static interface |
Sensor.SensorAccuracy
Interface used to define constants for sensor accuracy. |
static interface |
Sensor.SensorApiErrorCodes
Interface used to define constants for sensor error codes sent from the host application |
static interface |
Sensor.SensorInterruptMode
Interface used to define constants for sensor interrupt mode. |
static interface |
Sensor.SensorRates
Interface used to define constants for sensor rates. |
| Field Summary | |
|---|---|
static java.lang.String |
SENSOR_TYPE_ACCELEROMETER
Constant defining the sensor type Accelerometer. |
static java.lang.String |
SENSOR_TYPE_LIGHT
Constant defining the sensor type Light. |
| Constructor Summary | |
|---|---|
protected |
Sensor()
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SENSOR_TYPE_ACCELEROMETER
android.hardware.Sensor#TYPE_ACCELEROMETER
public static final java.lang.String SENSOR_TYPE_LIGHT
android.hardware.Sensor#TYPE_LIGHT
| Constructor Detail |
|---|
protected Sensor()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||