Udostępnij za pośrednictwem


Activity.Intent Property

Definition

Return the intent that started this activity. -or- Change the intent returned by #getIntent.

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

Attributes

Remarks

Property getter documentation:

Return the intent that started this activity.

Java documentation for android.app.Activity.getIntent().

Property setter documentation:

Change the intent returned by #getIntent. This holds a reference to the given intent; it does not copy it. Often used in conjunction with #onNewIntent.

Java documentation for android.app.Activity.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.

Applies to

See also