Language

VoiceInteractionManager.CreateRequestReadScreenContextIntent Method

Definition

Creates an intent which can be used to request access to screen context for current assistant role holder.

[Android.Runtime.Register("createRequestReadScreenContextIntent", "()Landroid/content/Intent;", "", ApiSince=37)]
public Android.Content.Intent CreateRequestReadScreenContextIntent();
[<Android.Runtime.Register("createRequestReadScreenContextIntent", "()Landroid/content/Intent;", "", ApiSince=37)>]
member this.CreateRequestReadScreenContextIntent : unit -> Android.Content.Intent

Returns

The created intent.

Attributes

Remarks

Creates an intent which can be used to request access to screen context for current assistant role holder. This intent MUST be used with Activity.startActivityForResult(Intent, int). The result code of the activity will be Activity.RESULT_OK if the request was granted, Activity.RESULT_CANCELED if not. If the caller is not the current default assistant, the request will be denied automatically.

Android reference for android.app.voiceinteraction.VoiceInteractionManager.createRequestReadScreenContextIntent.

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