Share via


Preference.Context Property

Definition

Returns the android.content.Context of this Preference.

public virtual Android.Content.Context? Context { [Android.Runtime.Register("getContext", "()Landroid/content/Context;", "GetGetContextHandler")] get; }
[<get: Android.Runtime.Register("getContext", "()Landroid/content/Context;", "GetGetContextHandler")>]
member this.Context : Android.Content.Context

Property Value

The Context of this Preference.

Attributes

Remarks

Returns the android.content.Context of this Preference. Each Preference in a Preference hierarchy can be from different Context (for example, if multiple activities provide preferences into a single PreferenceActivity). This Context will be used to save the Preference values.

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

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