com.sonyericsson.extras.liveware.aef.widget
Interface Widget.Intents

Enclosing class:
Widget

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

WIDGET_START_REFRESH_IMAGE_INTENT

static final 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. Usually this Intent will be sent out when the accessory just starts and is about to show the Widget menu. The Widget image should be updated as soon as possible and after the initial update the Widget image should be updated occasionally until WIDGET_STOP_REFRESH_IMAGE_INTENT is received

Intent-extra data:

Since:
1.0
See Also:
Constant Field Values

WIDGET_STOP_REFRESH_IMAGE_INTENT

static final 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. The Widget should resume updating its image when WIDGET_START_REFRESH_IMAGE_INTENT is received.

Intent-extra data:

Since:
1.0
See Also:
Constant Field Values

WIDGET_IMAGE_UPDATE_INTENT

static final java.lang.String WIDGET_IMAGE_UPDATE_INTENT
Intent used by the Widget Extension whenever it wants to update its widget image. The Widget image should be updated occasionally. If the Extension tries to update its Widget image to often, the Host Application will ignore the requests.

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

WIDGET_ENTER_NEXT_LEVEL_INTENT

static final 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. 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:

Since:
1.0
See Also:
Constant Field Values

WIDGET_ONTOUCH_INTENT

static final java.lang.String WIDGET_ONTOUCH_INTENT
Intent sent by the Host Application to the Widget Extension whenever a user interacts with the Widget image. Usually as a result of this Intent the Widget Extension will update its Widget image and take appropriate action

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_WIDGET_IMAGE_URI

static final java.lang.String EXTRA_WIDGET_IMAGE_URI
The name of the Intent-extra used to identify the URI of the Widget image. If the image is in raw data (e.g. an array of bytes) use 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

Since:
1.0
See Also:
Constant Field Values

EXTRA_WIDGET_IMAGE_DATA

static final java.lang.String EXTRA_WIDGET_IMAGE_DATA
The name of the Intent-extra used to identify the Widget image. This Intent-extra should be used if the image is in raw data (e.g. an array of bytes). 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: BYTE ARRAY

Since:
1.0
See Also:
Constant Field Values

EXTRA_EVENT_TYPE

static final java.lang.String EXTRA_EVENT_TYPE
The name of the Intent-extra used to identify the touch event

TYPE: INTEGER (int)

ALLOWED VALUES:

Since:
1.0
See Also:
Constant Field Values

EXTRA_EVENT_X_POS

static final java.lang.String EXTRA_EVENT_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_EVENT_Y_POS

static final java.lang.String EXTRA_EVENT_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_EXTENSION_KEY

static final java.lang.String EXTRA_EXTENSION_KEY
The name of the Intent-extra containing the key set by the extension in 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

Since:
1.0
See Also:
Constant Field Values

EVENT_TYPE_SHORT_TAP

static final int EVENT_TYPE_SHORT_TAP
The event type is a short tap

Since:
1.0
See Also:
Constant Field Values

EVENT_TYPE_LONG_TAP

static final int EVENT_TYPE_LONG_TAP
The event type is a long tap

Since:
1.0
See Also:
Constant Field Values