AssistContent.Intent Property
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.
Returns the current #setIntent
if one is set, else the default Intent obtained from
android.app.Activity#getIntent Activity.getIntent
. -or- Sets the Intent associated with the content, describing the current top-level context of
the activity.
public virtual Android.Content.Intent? Intent { [Android.Runtime.Register("getIntent", "()Landroid/content/Intent;", "GetGetIntentHandler", ApiSince=23)] get; [Android.Runtime.Register("setIntent", "(Landroid/content/Intent;)V", "GetSetIntent_Landroid_content_Intent_Handler", ApiSince=23)] set; }
[<get: Android.Runtime.Register("getIntent", "()Landroid/content/Intent;", "GetGetIntentHandler", ApiSince=23)>]
[<set: Android.Runtime.Register("setIntent", "(Landroid/content/Intent;)V", "GetSetIntent_Landroid_content_Intent_Handler", ApiSince=23)>]
member this.Intent : Android.Content.Intent with get, set
Property Value
- Attributes
Remarks
Property getter documentation:
Returns the current #setIntent
if one is set, else the default Intent obtained from android.app.Activity#getIntent Activity.getIntent
. Can be modified in-place.
Java documentation for android.app.assist.AssistContent.getIntent()
.
Property setter documentation:
Sets the Intent associated with the content, describing the current top-level context of the activity. If this contains a reference to a piece of data related to the activity, be sure to set Intent#FLAG_GRANT_READ_URI_PERMISSION
so the accessibility service can access it.
Java documentation for android.app.assist.AssistContent.setIntent(android.content.Intent)
.
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.