VoiceInteractionSession.OnHandleAssistSecondary Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called to receive data from other applications that the user was or is interacting with, that are currently on the screen in a multi-window display environment, not including the currently focused activity.
[Android.Runtime.Register("onHandleAssistSecondary", "(Landroid/os/Bundle;Landroid/app/assist/AssistStructure;Landroid/app/assist/AssistContent;II)V", "GetOnHandleAssistSecondary_Landroid_os_Bundle_Landroid_app_assist_AssistStructure_Landroid_app_assist_AssistContent_IIHandler", ApiSince=24)]
public virtual void OnHandleAssistSecondary (Android.OS.Bundle? data, Android.App.Assist.AssistStructure? structure, Android.App.Assist.AssistContent? content, int index, int count);
[<Android.Runtime.Register("onHandleAssistSecondary", "(Landroid/os/Bundle;Landroid/app/assist/AssistStructure;Landroid/app/assist/AssistContent;II)V", "GetOnHandleAssistSecondary_Landroid_os_Bundle_Landroid_app_assist_AssistStructure_Landroid_app_assist_AssistContent_IIHandler", ApiSince=24)>]
abstract member OnHandleAssistSecondary : Android.OS.Bundle * Android.App.Assist.AssistStructure * Android.App.Assist.AssistContent * int * int -> unit
override this.OnHandleAssistSecondary : Android.OS.Bundle * Android.App.Assist.AssistStructure * Android.App.Assist.AssistContent * int * int -> unit
Parameters
- data
- Bundle
Arbitrary data supplied by the app through
android.app.Activity#onProvideAssistData Activity.onProvideAssistData
.
May be null if assist data has been disabled by the user or device policy.
- structure
- AssistStructure
If available, the structure definition of all windows currently displayed by the app. May be null if assist data has been disabled by the user or device policy; will be an empty stub if the application has disabled assist by marking its window as secure.
- content
- AssistContent
Additional content data supplied by the app through
android.app.Activity#onProvideAssistContent Activity.onProvideAssistContent
.
May be null if assist data has been disabled by the user or device policy; will
not be automatically filled in with data from the app if the app has marked its
window as secure.
- index
- Int32
the index of the additional activity that this data is for.
- count
- Int32
the total number of additional activities for which the assist data is being
returned, including the focused activity that is returned via
#onHandleAssist
.
- Attributes
Remarks
Called to receive data from other applications that the user was or is interacting with, that are currently on the screen in a multi-window display environment, not including the currently focused activity. This could be a free-form window, a picture-in-picture window, or another window in a split-screen display.
This method is very similar to #onHandleAssist
except that it is called for additional non-focused activities along with an index and count that indicates which additional activity the data is for. index
will be between 1 and count
-1 and this method is called once for each additional window, in no particular order. The count
indicates how many windows to expect assist data for, including the top focused activity, which continues to be returned via #onHandleAssist
.
To be responsive to assist requests, process assist data as soon as it is received, without waiting for all queued activities to return assist data.
This member is deprecated. use #onHandleAssist(AssistState)
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.