|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface Widget.Intents
Intents sent between Widget Extensions and Accessory Host Applications.
| Field Summary | |
|---|---|
static int |
EVENT_TYPE_LONG_TAP
The event type is a long tap |
static int |
EVENT_TYPE_SHORT_TAP
The event type is a short tap |
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_EVENT_TYPE
The name of the Intent-extra used to identify the touch event |
static java.lang.String |
EXTRA_EVENT_X_POS
The name of the Intent-extra used to carry the X coordinate of the touch event |
static java.lang.String |
EXTRA_EVENT_Y_POS
The name of the Intent-extra used to carry the Y coordinate of the touch event |
static java.lang.String |
EXTRA_EXTENSION_KEY
The name of the Intent-extra containing the key set by the extension in Registration.ExtensionColumns.EXTENSION_KEY. |
static java.lang.String |
EXTRA_WIDGET_IMAGE_DATA
The name of the Intent-extra used to identify the Widget image. |
static java.lang.String |
EXTRA_WIDGET_IMAGE_URI
The name of the Intent-extra used to identify the URI of the Widget image. |
static java.lang.String |
WIDGET_ENTER_NEXT_LEVEL_INTENT
This intent may be used by the Widget Extension as a response to a WIDGET_ONTOUCH_INTENT. |
static java.lang.String |
WIDGET_IMAGE_UPDATE_INTENT
Intent used by the Widget Extension whenever it wants to update its widget image. |
static java.lang.String |
WIDGET_ONTOUCH_INTENT
Intent sent by the Host Application to the Widget Extension whenever a user interacts with the Widget image. |
static java.lang.String |
WIDGET_START_REFRESH_IMAGE_INTENT
Intent sent by the Accessory Host Application whenever it wants the Widget to start update it's Widget image. |
static java.lang.String |
WIDGET_STOP_REFRESH_IMAGE_INTENT
Intent sent by the Accessory Host Application whenever it wants the Widget to stop/pause update it's Widget image. |
| Field Detail |
|---|
static final java.lang.String WIDGET_START_REFRESH_IMAGE_INTENT
Intent-extra data:
static final java.lang.String WIDGET_STOP_REFRESH_IMAGE_INTENT
Intent-extra data:
static final java.lang.String WIDGET_IMAGE_UPDATE_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 WIDGET_ENTER_NEXT_LEVEL_INTENT
WIDGET_ONTOUCH_INTENT.
The widget should send this intent when it does not want to perform any action based on the on touch intent.
When receiving this intent the host application is free to stop interaction with this widget and enter a new
level or state internally.
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 WIDGET_ONTOUCH_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_WIDGET_IMAGE_URI
EXTRA_WIDGET_IMAGE_DATA instead.
The image is displayed in the Widget row on the Accessory display.
The image can be updated by the Extension at a later stage
TYPE: TEXT
static final java.lang.String EXTRA_WIDGET_IMAGE_DATA
TYPE: BYTE ARRAY
static final java.lang.String EXTRA_EVENT_TYPE
TYPE: INTEGER (int)
ALLOWED VALUES:
static final java.lang.String EXTRA_EVENT_X_POS
TYPE: INTEGER (int)
static final java.lang.String EXTRA_EVENT_Y_POS
TYPE: INTEGER (int)
static final java.lang.String EXTRA_EXTENSION_KEY
Registration.ExtensionColumns.EXTENSION_KEY. 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
static final int EVENT_TYPE_SHORT_TAP
static final int EVENT_TYPE_LONG_TAP
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||