Preference.Intent Property

Definition

Return the Intent associated with this Preference. -or- Sets an Intent to be used for Context#startActivity(Intent) when this Preference is clicked.

C#
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; }

Property Value

The Intent last set via #setIntent(Intent) or XML.

Attributes

Remarks

Property getter documentation:

Return the Intent associated with this Preference.

Java documentation for android.preference.Preference.getIntent().

Property setter documentation:

Sets an Intent to be used for Context#startActivity(Intent) when this Preference is clicked.

Java documentation for android.preference.Preference.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

Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35