Aracılığıyla paylaş


Activity.OnProvideAssistData(Bundle) Method

Definition

This is called when the user is requesting an assist, to build a full Intent#ACTION_ASSIST Intent with all of the context of the current application.

[Android.Runtime.Register("onProvideAssistData", "(Landroid/os/Bundle;)V", "GetOnProvideAssistData_Landroid_os_Bundle_Handler")]
public virtual void OnProvideAssistData (Android.OS.Bundle? data);
[<Android.Runtime.Register("onProvideAssistData", "(Landroid/os/Bundle;)V", "GetOnProvideAssistData_Landroid_os_Bundle_Handler")>]
abstract member OnProvideAssistData : Android.OS.Bundle -> unit
override this.OnProvideAssistData : Android.OS.Bundle -> unit

Parameters

data
Bundle
Attributes

Remarks

This is called when the user is requesting an assist, to build a full Intent#ACTION_ASSIST Intent with all of the context of the current application. You can override this method to place into the bundle anything you would like to appear in the Intent#EXTRA_ASSIST_CONTEXT part of the assist Intent.

This function will be called after any global assist callbacks that had been registered with Application#registerOnProvideAssistDataListener Application.registerOnProvideAssistDataListener.

Java documentation for android.app.Activity.onProvideAssistData(android.os.Bundle).

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.

Applies to