com.sonyericsson.extras.liveware.aef.control
Interface Control.Intents

Enclosing class:
Control

public static interface Control.Intents

Intents sent between Control Extensions and Accessory Host Applications.


Field Summary
static int CONTROL_ACTION_OFF
          The control action is turned off
static int CONTROL_ACTION_ON
          The control action is turned on
static java.lang.String CONTROL_CLEAR_DISPLAY_INTENT
          Intent sent by the Extension whenever it wants to clear the accessory display.
static java.lang.String CONTROL_DISPLAY_DATA_INTENT
          Intent sent by the Extension whenever it wants to update the accessory display.
static java.lang.String CONTROL_ERROR_INTENT
          Intent sent by the Host Application when a error occurs
static java.lang.String CONTROL_KEY_EVENT_INTENT
          Intent sent by the Host Application to the controlling Extension whenever an hardware key is pressed/released.
static java.lang.String CONTROL_LED_INTENT
          Intent sent by the Extension when it wants to control one of the LEDs available on the accessory.
static java.lang.String CONTROL_PAUSE_INTENT
          Intent sent by the Host Application when the Extension is no longer visible on the display.
static java.lang.String CONTROL_RESUME_INTENT
          Intent sent by the Host Application when the Extension is visible on the display.
static java.lang.String CONTROL_SET_SCREEN_STATE_INTENT
          Intent sent by the Extension when it wants to set the state of the accessory display.
static java.lang.String CONTROL_START_INTENT
          Intent sent by the Host Application when it grants control of the accessory display to the Extension.
static java.lang.String CONTROL_START_REQUEST_INTENT
          Intent sent by the Extension when it wants to take control of the accessory display.
static java.lang.String CONTROL_STOP_INTENT
          Intent sent by the Host Application when it takes back control of the accessory display from the Extension.
static java.lang.String CONTROL_STOP_LED_INTENT
          Intent sent by the Extension when it wants to stop an ongoing LED sequence on the accessory.
static java.lang.String CONTROL_STOP_REQUEST_INTENT
          Intent sent by the Extension when it wants to stop controlling the accessory display.
static java.lang.String CONTROL_STOP_VIBRATE_INTENT
          Intent sent by the Extension when it wants to stop an ongoing vibration on the accessory.
static java.lang.String CONTROL_SWIPE_EVENT_INTENT
          Intent sent by the Host Application to the controlling Extension whenever an swipe event is detected.
static java.lang.String CONTROL_TOUCH_EVENT_INTENT
          Intent sent by the Host Application to the controlling Extension whenever an touch event is detected.
static java.lang.String CONTROL_VIBRATE_INTENT
          Intent sent by the Extension when it wants to control the vibrator available on the accessory.
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_DATA
          The name of the Intent-extra used to identify the data to be displayed on the accessory display.
static java.lang.String EXTRA_DATA_URI
          The name of the Intent-extra used to identify the URI of the image to be displayed on the accessory display.
static java.lang.String EXTRA_ERROR_CODE
          The name of the Intent-extra used to carry the error code
static java.lang.String EXTRA_EXTENSION_KEY
          The name of the Intent-extra containing the key set by the extension.
static java.lang.String EXTRA_KEY_ACTION
          The name of the Intent-extra used to identify the type of key event
static java.lang.String EXTRA_KEY_CODE
          The name of the Intent-extra used to identify the keycode.
static java.lang.String EXTRA_LED_COLOR
          The name of the Intent-extra carrying the color you want the LED to blink with
static java.lang.String EXTRA_LED_ID
          The name of the Intent-extra carrying the ID of the LED to be controlled
static java.lang.String EXTRA_OFF_DURATION
          The name of the Intent-extra carrying the "off" duration in milliseconds
static java.lang.String EXTRA_ON_DURATION
          The name of the Intent-extra carrying the "on" duration in milliseconds
static java.lang.String EXTRA_REPEATS
          The name of the Intent-extra carrying the number of repeats of the on/off pattern.
static java.lang.String EXTRA_SCREEN_STATE
          The name of the Intent-extra carrying the state of the display
static java.lang.String EXTRA_SWIPE_DIRECTION
          The name of the Intent-extra used to indicate the direction
static java.lang.String EXTRA_TIMESTAMP
          The name of the Intent-extra used to carry the time stamp of the key or touch event
static java.lang.String EXTRA_TOUCH_ACTION
          The name of the Intent-extra used to indicate the touch action
static java.lang.String EXTRA_X_OFFSET
          The name of the Intent-extra used to identify the pixel offset from the left side of the accessory display
static java.lang.String EXTRA_X_POS
          The name of the Intent-extra used to carry the X coordinate of the touch event
static java.lang.String EXTRA_Y_OFFSET
          The name of the Intent-extra used to identify the pixel offset from the top of the accessory display
static java.lang.String EXTRA_Y_POS
          The name of the Intent-extra used to carry the Y coordinate of the touch event
static int KEY_ACTION_PRESS
          The key event is a key press event
static int KEY_ACTION_RELEASE
          The key event is a key release event
static int KEY_ACTION_REPEAT
          The key event is a key repeat event
static int REPEAT_UNTIL_STOP_INTENT
          Vibration or LED is repeated until explicitly stopped
static int SCREEN_STATE_AUTO
          The screen state is automatically handled by the host application
static int SCREEN_STATE_DIM
          The screen dim state
static int SCREEN_STATE_OFF
          The screen off state
static int SCREEN_STATE_ON
          The screen on state
static int SWIPE_DIRECTION_DOWN
          The direction of the swipe event is down
static int SWIPE_DIRECTION_LEFT
          The direction of the swipe event is left
static int SWIPE_DIRECTION_RIGHT
          The direction of the swipe event is right
static int SWIPE_DIRECTION_UP
          The direction of the swipe event is up
static int TOUCH_ACTION_LONGPRESS
          The touch action is a long press event
static int TOUCH_ACTION_PRESS
          The touch action is a press event
static int TOUCH_ACTION_RELEASE
          The touch action is a release event
 

Field Detail

CONTROL_START_REQUEST_INTENT

static final java.lang.String CONTROL_START_REQUEST_INTENT
Intent sent by the Extension when it wants to take control of the accessory display.

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

CONTROL_STOP_REQUEST_INTENT

static final java.lang.String CONTROL_STOP_REQUEST_INTENT
Intent sent by the Extension when it wants to stop controlling the accessory display.

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

CONTROL_START_INTENT

static final java.lang.String CONTROL_START_INTENT
Intent sent by the Host Application when it grants control of the accessory display to the Extension. This Intent might be sent when the Host Application wants to start the Extension or as a result of the Extensions sending a CONTROL_START_REQUEST_INTENT Intent.

Intent-extra data:

Since:
1.0
See Also:
Constant Field Values

CONTROL_STOP_INTENT

static final java.lang.String CONTROL_STOP_INTENT
Intent sent by the Host Application when it takes back control of the accessory display from the Extension. This Intent might be sent when the Host Application wants to stop the Extension or as a result of the Extensions sending a CONTROL_STOP_REQUEST_INTENT Intent.

Intent-extra data:

Since:
1.0
See Also:
Constant Field Values

CONTROL_PAUSE_INTENT

static final java.lang.String CONTROL_PAUSE_INTENT
Intent sent by the Host Application when the Extension is no longer visible on the display.

Intent-extra data:

Since:
1.0
See Also:
Constant Field Values

CONTROL_RESUME_INTENT

static final java.lang.String CONTROL_RESUME_INTENT
Intent sent by the Host Application when the Extension is visible on the display.

Intent-extra data:

Since:
1.0
See Also:
Constant Field Values

CONTROL_ERROR_INTENT

static final java.lang.String CONTROL_ERROR_INTENT
Intent sent by the Host Application when a error occurs

Intent-extra data:

Since:
1.0
See Also:
Constant Field Values

CONTROL_SET_SCREEN_STATE_INTENT

static final java.lang.String CONTROL_SET_SCREEN_STATE_INTENT
Intent sent by the Extension when it wants to set the state of the accessory display. If the Extension does not set the state explicitly it will by default be controlled by the Host Application (Display Auto) for optimal power consumption.

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

CONTROL_LED_INTENT

static final java.lang.String CONTROL_LED_INTENT
Intent sent by the Extension when it wants to control one of the LEDs available on the accessory. Every Host Application will expose information about its LEDs in the Registration & Capabilities API.

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

CONTROL_STOP_LED_INTENT

static final java.lang.String CONTROL_STOP_LED_INTENT
Intent sent by the Extension when it wants to stop an ongoing LED sequence on the accessory. If the LED specified in the Intent-extra if off this Intent will be ignored by the Host Application.

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

CONTROL_VIBRATE_INTENT

static final java.lang.String CONTROL_VIBRATE_INTENT
Intent sent by the Extension when it wants to control the vibrator available on the accessory. Every Host Application will expose information about the vibrator if it has one in the Registration & Capabilities API.

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

CONTROL_STOP_VIBRATE_INTENT

static final java.lang.String CONTROL_STOP_VIBRATE_INTENT
Intent sent by the Extension when it wants to stop an ongoing vibration on the accessory. If no vibration is ongoing this Intent will be ignored by the Host Application.

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

CONTROL_DISPLAY_DATA_INTENT

static final java.lang.String CONTROL_DISPLAY_DATA_INTENT
Intent sent by the Extension whenever it wants to update the accessory display. The display size is accessory dependent and can be found using the Registration & Capabilities API.

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

CONTROL_CLEAR_DISPLAY_INTENT

static final java.lang.String CONTROL_CLEAR_DISPLAY_INTENT
Intent sent by the Extension whenever it wants to clear the accessory display.

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

CONTROL_KEY_EVENT_INTENT

static final java.lang.String CONTROL_KEY_EVENT_INTENT
Intent sent by the Host Application to the controlling Extension whenever an hardware key is pressed/released.

Intent-extra data:

Since:
1.0
See Also:
Constant Field Values

CONTROL_TOUCH_EVENT_INTENT

static final java.lang.String CONTROL_TOUCH_EVENT_INTENT
Intent sent by the Host Application to the controlling Extension whenever an touch event is detected.

Intent-extra data:

Since:
1.0
See Also:
Constant Field Values

CONTROL_SWIPE_EVENT_INTENT

static final java.lang.String CONTROL_SWIPE_EVENT_INTENT
Intent sent by the Host Application to the controlling Extension whenever an swipe event is detected.

Intent-extra data:

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

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_SCREEN_STATE

static final java.lang.String EXTRA_SCREEN_STATE
The name of the Intent-extra carrying the state of the display

TYPE: INTEGER (int)

ALLOWED VALUES:

Since:
1.0
See Also:
Constant Field Values

EXTRA_LED_ID

static final java.lang.String EXTRA_LED_ID
The name of the Intent-extra carrying the ID of the LED to be controlled

TYPE: INTEGER (int)

Since:
1.0
See Also:
Constant Field Values

EXTRA_LED_COLOR

static final java.lang.String EXTRA_LED_COLOR
The name of the Intent-extra carrying the color you want the LED to blink with

TYPE: INTEGER (int)

Since:
1.0
See Also:
Constant Field Values

EXTRA_ON_DURATION

static final java.lang.String EXTRA_ON_DURATION
The name of the Intent-extra carrying the "on" duration in milliseconds

TYPE: INTEGER (int)

Since:
1.0
See Also:
Constant Field Values

EXTRA_OFF_DURATION

static final java.lang.String EXTRA_OFF_DURATION
The name of the Intent-extra carrying the "off" duration in milliseconds

TYPE: INTEGER (int)

Since:
1.0
See Also:
Constant Field Values

EXTRA_REPEATS

static final java.lang.String EXTRA_REPEATS
The name of the Intent-extra carrying the number of repeats of the on/off pattern. Note, the value REPEAT_UNTIL_STOP_INTENT means that the on/off pattern is repeated until the CONTROL_STOP_VIBRATE_INTENT or CONTROL_STOP_LED_INTENT intent is received

TYPE: INTEGER (int)

Since:
1.0
See Also:
Constant Field Values

EXTRA_DATA_URI

static final java.lang.String EXTRA_DATA_URI
The name of the Intent-extra used to identify the URI of the image to be displayed on the accessory display. If the image is in raw data (e.g. an array of bytes) use EXTRA_DATA instead

TYPE: TEXT

Since:
1.0
See Also:
Constant Field Values

EXTRA_DATA

static final java.lang.String EXTRA_DATA
The name of the Intent-extra used to identify the data to be displayed on the accessory display. This Intent-extra should be used if the image is in raw data (e.g. an array of bytes)

TYPE: BYTE ARRAY

Since:
1.0
See Also:
Constant Field Values

EXTRA_X_OFFSET

static final java.lang.String EXTRA_X_OFFSET
The name of the Intent-extra used to identify the pixel offset from the left side of the accessory display

TYPE: INTEGER (int)

Since:
1.0
See Also:
Constant Field Values

EXTRA_Y_OFFSET

static final java.lang.String EXTRA_Y_OFFSET
The name of the Intent-extra used to identify the pixel offset from the top of the accessory display

TYPE: INTEGER (int)

Since:
1.0
See Also:
Constant Field Values

EXTRA_KEY_ACTION

static final java.lang.String EXTRA_KEY_ACTION
The name of the Intent-extra used to identify the type of key event

TYPE: INTEGER (int)

ALLOWED VALUES:

Since:
1.0
See Also:
Constant Field Values

EXTRA_TIMESTAMP

static final java.lang.String EXTRA_TIMESTAMP
The name of the Intent-extra used to carry the time stamp of the key or touch event

TYPE: INTEGER (long)

Since:
1.0
See Also:
Constant Field Values

EXTRA_KEY_CODE

static final java.lang.String EXTRA_KEY_CODE
The name of the Intent-extra used to identify the keycode. Information about what type of keypad a accessory has can be found using the Registration & Capabilities API

ALLOWED VALUES: Any key code defined in the Control.KeyCodes interface.

TYPE: INTEGER (int)

Since:
1.0
See Also:
Constant Field Values

EXTRA_TOUCH_ACTION

static final java.lang.String EXTRA_TOUCH_ACTION
The name of the Intent-extra used to indicate the touch action

TYPE: INTEGER (int)

ALLOWED VALUES:

Since:
1.0
See Also:
Constant Field Values

EXTRA_SWIPE_DIRECTION

static final java.lang.String EXTRA_SWIPE_DIRECTION
The name of the Intent-extra used to indicate the direction

TYPE: INTEGER (int)

ALLOWED VALUES:

Since:
1.0
See Also:
Constant Field Values

EXTRA_X_POS

static final java.lang.String EXTRA_X_POS
The name of the Intent-extra used to carry the X coordinate of the touch event

TYPE: INTEGER (int)

Since:
1.0
See Also:
Constant Field Values

EXTRA_Y_POS

static final java.lang.String EXTRA_Y_POS
The name of the Intent-extra used to carry the Y coordinate of the touch event

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 carry the error code

TYPE: INTEGER (int)

ALLOWED VALUES:

Since:
1.0
See Also:
Constant Field Values

EXTRA_EXTENSION_KEY

static final java.lang.String EXTRA_EXTENSION_KEY
The name of the Intent-extra containing the key set by the extension. This Intent-data is present in all Intents sent by accessory host application, except where android.app.Activity#startActivity(android.content.Intent) is used. See section Security for more information

Since:
1.0
See Also:
Constant Field Values

TOUCH_ACTION_PRESS

static final int TOUCH_ACTION_PRESS
The touch action is a press event

Since:
1.0
See Also:
Constant Field Values

TOUCH_ACTION_LONGPRESS

static final int TOUCH_ACTION_LONGPRESS
The touch action is a long press event

Since:
1.0
See Also:
Constant Field Values

TOUCH_ACTION_RELEASE

static final int TOUCH_ACTION_RELEASE
The touch action is a release event

Since:
1.0
See Also:
Constant Field Values

SWIPE_DIRECTION_UP

static final int SWIPE_DIRECTION_UP
The direction of the swipe event is up

Since:
1.0
See Also:
Constant Field Values

SWIPE_DIRECTION_DOWN

static final int SWIPE_DIRECTION_DOWN
The direction of the swipe event is down

Since:
1.0
See Also:
Constant Field Values

SWIPE_DIRECTION_LEFT

static final int SWIPE_DIRECTION_LEFT
The direction of the swipe event is left

Since:
1.0
See Also:
Constant Field Values

SWIPE_DIRECTION_RIGHT

static final int SWIPE_DIRECTION_RIGHT
The direction of the swipe event is right

Since:
1.0
See Also:
Constant Field Values

SCREEN_STATE_OFF

static final int SCREEN_STATE_OFF
The screen off state

Since:
1.0
See Also:
Constant Field Values

SCREEN_STATE_DIM

static final int SCREEN_STATE_DIM
The screen dim state

Since:
1.0
See Also:
Constant Field Values

SCREEN_STATE_ON

static final int SCREEN_STATE_ON
The screen on state

Since:
1.0
See Also:
Constant Field Values

SCREEN_STATE_AUTO

static final int SCREEN_STATE_AUTO
The screen state is automatically handled by the host application

Since:
1.0
See Also:
Constant Field Values

KEY_ACTION_PRESS

static final int KEY_ACTION_PRESS
The key event is a key press event

Since:
1.0
See Also:
Constant Field Values

KEY_ACTION_RELEASE

static final int KEY_ACTION_RELEASE
The key event is a key release event

Since:
1.0
See Also:
Constant Field Values

KEY_ACTION_REPEAT

static final int KEY_ACTION_REPEAT
The key event is a key repeat event

Since:
1.0
See Also:
Constant Field Values

CONTROL_ACTION_ON

static final int CONTROL_ACTION_ON
The control action is turned on

Since:
1.0
See Also:
Constant Field Values

CONTROL_ACTION_OFF

static final int CONTROL_ACTION_OFF
The control action is turned off

Since:
1.0
See Also:
Constant Field Values

REPEAT_UNTIL_STOP_INTENT

static final int REPEAT_UNTIL_STOP_INTENT
Vibration or LED is repeated until explicitly stopped

Since:
1.0
See Also:
Constant Field Values