|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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 |
|---|
static final java.lang.String CONTROL_START_REQUEST_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:
static final java.lang.String CONTROL_STOP_REQUEST_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:
static final java.lang.String CONTROL_START_INTENT
CONTROL_START_REQUEST_INTENT Intent.
Intent-extra data:
static final java.lang.String CONTROL_STOP_INTENT
CONTROL_STOP_REQUEST_INTENT Intent.
Intent-extra data:
static final java.lang.String CONTROL_PAUSE_INTENT
Intent-extra data:
static final java.lang.String CONTROL_RESUME_INTENT
Intent-extra data:
static final java.lang.String CONTROL_ERROR_INTENT
Intent-extra data:
static final java.lang.String CONTROL_SET_SCREEN_STATE_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:
static final java.lang.String CONTROL_LED_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:
EXTRA_AEA_PACKAGE_NAMEEXTRA_LED_IDEXTRA_LED_COLOREXTRA_ON_DURATIONEXTRA_OFF_DURATIONEXTRA_REPEATS
static final java.lang.String CONTROL_STOP_LED_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:
static final java.lang.String CONTROL_VIBRATE_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:
static final java.lang.String CONTROL_STOP_VIBRATE_INTENT
This intent should be sent with enforced security by supplying the host application permission
to sendBroadcast(Intent, String). Registration.HOSTAPP_PERMISSION
static final java.lang.String CONTROL_DISPLAY_DATA_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:
static final java.lang.String CONTROL_CLEAR_DISPLAY_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:
static final java.lang.String CONTROL_KEY_EVENT_INTENT
Intent-extra data:
static final java.lang.String CONTROL_TOUCH_EVENT_INTENT
Intent-extra data:
EXTRA_AHA_PACKAGE_NAMEEXTRA_TOUCH_ACTIONEXTRA_TIMESTAMPEXTRA_X_POSEXTRA_Y_POSEXTRA_EXTENSION_KEY
static final java.lang.String CONTROL_SWIPE_EVENT_INTENT
Intent-extra data:
static final java.lang.String EXTRA_AHA_PACKAGE_NAME
TYPE: TEXT
static final java.lang.String EXTRA_AEA_PACKAGE_NAME
TYPE: TEXT
static final java.lang.String EXTRA_SCREEN_STATE
TYPE: INTEGER (int)
ALLOWED VALUES:
static final java.lang.String EXTRA_LED_ID
TYPE: INTEGER (int)
static final java.lang.String EXTRA_LED_COLOR
TYPE: INTEGER (int)
static final java.lang.String EXTRA_ON_DURATION
TYPE: INTEGER (int)
static final java.lang.String EXTRA_OFF_DURATION
TYPE: INTEGER (int)
static final java.lang.String EXTRA_REPEATS
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)
static final java.lang.String EXTRA_DATA_URI
EXTRA_DATA instead
TYPE: TEXT
static final java.lang.String EXTRA_DATA
TYPE: BYTE ARRAY
static final java.lang.String EXTRA_X_OFFSET
TYPE: INTEGER (int)
static final java.lang.String EXTRA_Y_OFFSET
TYPE: INTEGER (int)
static final java.lang.String EXTRA_KEY_ACTION
TYPE: INTEGER (int)
ALLOWED VALUES:
static final java.lang.String EXTRA_TIMESTAMP
TYPE: INTEGER (long)
static final java.lang.String EXTRA_KEY_CODE
ALLOWED VALUES:
Any key code defined in the Control.KeyCodes interface.
TYPE: INTEGER (int)
static final java.lang.String EXTRA_TOUCH_ACTION
TYPE: INTEGER (int)
ALLOWED VALUES:
static final java.lang.String EXTRA_SWIPE_DIRECTION
TYPE: INTEGER (int)
ALLOWED VALUES:
static final java.lang.String EXTRA_X_POS
TYPE: INTEGER (int)
static final java.lang.String EXTRA_Y_POS
TYPE: INTEGER (int)
static final java.lang.String EXTRA_ERROR_CODE
TYPE: INTEGER (int)
ALLOWED VALUES:
static final java.lang.String EXTRA_EXTENSION_KEY
android.app.Activity#startActivity(android.content.Intent)
is used. See section Security
for more information
static final int TOUCH_ACTION_PRESS
static final int TOUCH_ACTION_LONGPRESS
static final int TOUCH_ACTION_RELEASE
static final int SWIPE_DIRECTION_UP
static final int SWIPE_DIRECTION_DOWN
static final int SWIPE_DIRECTION_LEFT
static final int SWIPE_DIRECTION_RIGHT
static final int SCREEN_STATE_OFF
static final int SCREEN_STATE_DIM
static final int SCREEN_STATE_ON
static final int SCREEN_STATE_AUTO
static final int KEY_ACTION_PRESS
static final int KEY_ACTION_RELEASE
static final int KEY_ACTION_REPEAT
static final int CONTROL_ACTION_ON
static final int CONTROL_ACTION_OFF
static final int REPEAT_UNTIL_STOP_INTENT
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||