diff options
| author | Bjorn Bringert <bringert@android.com> | 2013-03-01 12:59:24 +0000 |
|---|---|---|
| committer | Bjorn Bringert <bringert@android.com> | 2013-03-01 12:59:24 +0000 |
| commit | bc086862e216bbe8ffc2dfb68f09a872505d9d48 (patch) | |
| tree | 4a6e35eff8fa87cdd18fe1ea053a8297c03dd8d2 /core/java/android | |
| parent | 84ea20d0ba7611782c7aa364cd41744fca359e35 (diff) | |
Declare VOICE_ASSIST intent
Bug: 8289964
Change-Id: I241b5166a98a7a462691f0169bf1b6f4fe7b2e0f
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/content/Intent.java | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index f8ff8d135404..60e9f58b171b 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -1158,16 +1158,29 @@ public class Intent implements Parcelable, Cloneable { public static final String ACTION_ASSIST = "android.intent.action.ASSIST"; /** - * An optional field on {@link #ACTION_ASSIST} containing the name of the current - * foreground application package at the time the assist was invoked. + * Activity Action: Perform voice assist action. + * <p> + * Input: {@link #EXTRA_ASSIST_PACKAGE} and {@link #EXTRA_ASSIST_CONTEXT} can provide + * additional optional contextual information about where the user was when they requested + * the voice assist. + * Output: nothing. + */ + @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) + public static final String ACTION_VOICE_ASSIST = "android.intent.action.VOICE_ASSIST"; + + /** + * An optional field on {@link #ACTION_ASSIST} and {@link #ACTION_VOICE_ASSIST} + * containing the name of the current foreground application package at the time + * the assist was invoked. */ public static final String EXTRA_ASSIST_PACKAGE = "android.intent.extra.ASSIST_PACKAGE"; /** - * An optional field on {@link #ACTION_ASSIST} containing additional contextual - * information supplied by the current foreground app at the time of the assist - * request. This is a {@link Bundle} of additional data. + * An optional field on {@link #ACTION_ASSIST} and {@link #ACTION_VOICE_ASSIST} + * containing additional contextual information supplied by the current + * foreground app at the time of the assist request. This is a {@link Bundle} of + * additional data. */ public static final String EXTRA_ASSIST_CONTEXT = "android.intent.extra.ASSIST_CONTEXT"; |
