Activity.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 intent that started this activity.
public virtual Android.Content.Intent? Intent { [Android.Runtime.Register("getIntent", "()Landroid/content/Intent;", "GetGetIntentHandler")] get; [Android.Runtime.Register("setIntent", "(Landroid/content/Intent;)V", "GetSetIntent_Landroid_content_Intent_Handler")] set; }
[<get: Android.Runtime.Register("getIntent", "()Landroid/content/Intent;", "GetGetIntentHandler")>]
[<set: Android.Runtime.Register("setIntent", "(Landroid/content/Intent;)V", "GetSetIntent_Landroid_content_Intent_Handler")>]
member this.Intent : Android.Content.Intent with get, set
Property Value
Intent instance that started this activity, or that was kept for future use
- Attributes
Remarks
Returns the intent that started this activity. To keep the Intent instance for future use, call setIntent(Intent), and use this method to retrieve it. Note that in onNewIntent(Intent), this method will return the original Intent. You can use setIntent(Intent) to update it to the new Intent.
Android reference for android.app.Activity.getIntent.
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.