Declare VOICE_ASSIST intent
Bug: 8289964 Change-Id: I241b5166a98a7a462691f0169bf1b6f4fe7b2e0f
This commit is contained in:
@ -5917,6 +5917,7 @@ package android.content {
|
||||
field public static final java.lang.String ACTION_USER_INITIALIZE = "android.intent.action.USER_INITIALIZE";
|
||||
field public static final java.lang.String ACTION_USER_PRESENT = "android.intent.action.USER_PRESENT";
|
||||
field public static final java.lang.String ACTION_VIEW = "android.intent.action.VIEW";
|
||||
field public static final java.lang.String ACTION_VOICE_ASSIST = "android.intent.action.VOICE_ASSIST";
|
||||
field public static final java.lang.String ACTION_VOICE_COMMAND = "android.intent.action.VOICE_COMMAND";
|
||||
field public static final deprecated java.lang.String ACTION_WALLPAPER_CHANGED = "android.intent.action.WALLPAPER_CHANGED";
|
||||
field public static final java.lang.String ACTION_WEB_SEARCH = "android.intent.action.WEB_SEARCH";
|
||||
|
@ -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";
|
||||
|
Reference in New Issue
Block a user