com.sonyericsson.extras.liveware.aef.sensor
Interface Sensor.Intents

Enclosing class:
Sensor

public static interface Sensor.Intents

Intents sent between Sensor Extensions and Accessory Host Applications


Field Summary
static java.lang.String EXTRA_AEA_PACKAGE_NAME
          The name of the Intent-extra used to identify the Extension.
static java.lang.String EXTRA_AHA_PACKAGE_NAME
          The name of the Intent-extra used to identify the Host Application.
static java.lang.String EXTRA_ERROR_CODE
          The name of the Intent-extra used to set the error code of an error message from the host application.
static java.lang.String EXTRA_SENSOR_ID
          The name of the Intent-extra used to identify the Sensor.
static java.lang.String EXTRA_SENSOR_INTERRUPT_MODE
          The name of the Intent-extra used to set the sensor interrupt mode.
static java.lang.String EXTRA_SENSOR_LOCAL_SERVER_SOCKET_NAME
          The name of the Intent-extra used to identify the name of the Android Local Server Socket that is now waiting for a connection from the host application
static java.lang.String EXTRA_SENSOR_REQUESTED_RATE
          The name of the Intent-extra used to set the preferred delivery rate of the sensor data.
static java.lang.String SENSOR_ERROR_MESSAGE_INTENT
          Intent sent by the Host Application when an error situation has occurred
static java.lang.String SENSOR_REGISTER_LISTENER_INTENT
          Intent used by the Sensor Extension whenever it wants to start listen to sensor data.
static java.lang.String SENSOR_UNREGISTER_LISTENER_INTENT
          Intent used by the Sensor Extension whenever it wants to stop listen to sensor data.
 

Field Detail

SENSOR_REGISTER_LISTENER_INTENT

static final java.lang.String SENSOR_REGISTER_LISTENER_INTENT
Intent used by the Sensor Extension whenever it wants to start listen to sensor data. The purpose of the intent is to tell the host application that a local server socket is now waiting for a connection from the host application. The name of the local server socket is sent in the intent.

This intent should be sent with enforced security by supplying the host application permission to sendBroadcast(Intent, String). Registration.HOSTAPP_PERMISSION

Intent-extra data:

Since:
1.0
See Also:
Constant Field Values

SENSOR_UNREGISTER_LISTENER_INTENT

static final java.lang.String SENSOR_UNREGISTER_LISTENER_INTENT
Intent used by the Sensor Extension whenever it wants to stop listen to sensor data.

This intent should be sent with enforced security by supplying the host application permission to sendBroadcast(Intent, String). Registration.HOSTAPP_PERMISSION

Intent-extra data:

Since:
1.0
See Also:
Constant Field Values

SENSOR_ERROR_MESSAGE_INTENT

static final java.lang.String SENSOR_ERROR_MESSAGE_INTENT
Intent sent by the Host Application when an error situation has occurred

Intent-extra data:

Since:
1.0
See Also:
Constant Field Values

EXTRA_AEA_PACKAGE_NAME

static final java.lang.String EXTRA_AEA_PACKAGE_NAME
The name of the Intent-extra used to identify the Extension. The extension will send its package name

TYPE: TEXT

Since:
1.0
See Also:
Constant Field Values

EXTRA_SENSOR_ID

static final java.lang.String EXTRA_SENSOR_ID
The name of the Intent-extra used to identify the Sensor. The Extension will send the ID of the sensor. The ID must be identical to the value of the SENSOR_ID column from the Sensor table of a sensor that is attached to the current host application

TYPE: INTEGER (int)

Since:
1.0
See Also:
Constant Field Values

EXTRA_SENSOR_LOCAL_SERVER_SOCKET_NAME

static final java.lang.String EXTRA_SENSOR_LOCAL_SERVER_SOCKET_NAME
The name of the Intent-extra used to identify the name of the Android Local Server Socket that is now waiting for a connection from the host application

TYPE: TEXT

Since:
1.0
See Also:
Constant Field Values

EXTRA_SENSOR_REQUESTED_RATE

static final java.lang.String EXTRA_SENSOR_REQUESTED_RATE
The name of the Intent-extra used to set the preferred delivery rate of the sensor data. The value must one the predefined constants Sensor.SensorRates

TYPE: INTEGER (int)

Since:
1.0
See Also:
Constant Field Values

EXTRA_SENSOR_INTERRUPT_MODE

static final java.lang.String EXTRA_SENSOR_INTERRUPT_MODE
The name of the Intent-extra used to set the sensor interrupt mode. The value must one the predefined constants Sensor.SensorInterruptMode

TYPE: INTEGER (int)

Since:
1.0
See Also:
Constant Field Values

EXTRA_ERROR_CODE

static final java.lang.String EXTRA_ERROR_CODE
The name of the Intent-extra used to set the error code of an error message from the host application. The value must be one of the predefined constants Sensor.SensorApiErrorCodes

TYPE: INTEGER (int)

Since:
1.0
See Also:
Constant Field Values

EXTRA_AHA_PACKAGE_NAME

static final java.lang.String EXTRA_AHA_PACKAGE_NAME
The name of the Intent-extra used to identify the Host Application. The Host Application will send its package name.

TYPE: TEXT

Since:
1.0
See Also:
Constant Field Values