Android.Preferences.Preference Members

The members of Android.Preferences.Preference are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Constructor to create a Preference.
Constructor that is called when inflating a Preference from XML.
Perform inflation from XML and apply a class-specific base style.
Perform inflation from XML and apply a class-specific base style.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
DefaultOrderint (2147483647). Specify for Preference.Order if a specific order is not required.

Public Properties

[read-only]
ContextAndroid.Content.Context. Returns the Android.Content.Context of this Preference.
Dependencystring. Returns the key of the dependency on this Preference.
[read-only]
EditorAndroid.Content.ISharedPreferencesEditor. Returns an Android.Content.ISharedPreferencesEditor where this Preference can save its value(s).
Enabledbool. Checks whether this Preference should be enabled in the list.
[read-only]
ExtrasAndroid.OS.Bundle. Return the extras Bundle object associated with this preference, creating a new Bundle if there currently isn't one.
Fragmentstring. Return the fragment class name associated with this Preference.
[read-only]
HasKeybool. Checks whether this Preference has a valid key.
IconAndroid.Graphics.Drawables.Drawable. Returns the icon of this Preference.
IntentAndroid.Content.Intent. Return the Android.Content.Intent associated with this Preference.
Keystring. Gets the key for this Preference, which is also the key used for storing values into SharedPreferences.
LayoutResourceint. Gets the layout resource that will be shown as the Android.Views.View for this Preference.
OnPreferenceChangeListenerAndroid.Preferences.Preference.IOnPreferenceChangeListener. Returns the callback to be invoked when this Preference is changed by the user (but before the internal state has been updated).
OnPreferenceClickListenerAndroid.Preferences.Preference.IOnPreferenceClickListener. Returns the callback to be invoked when this Preference is clicked.
Orderint. Gets the order of this Preference with respect to other Preference objects on the same level.
Persistentbool. Checks whether this Preference is persistent.
[read-only]
PreferenceManagerAndroid.Preferences.PreferenceManager. Gets the Android.Preferences.PreferenceManager that manages this Preference object's tree.
Selectablebool. Checks whether this Preference should be selectable in the list.
[read-only]
SharedPreferencesAndroid.Content.ISharedPreferences. Returns the Android.Content.ISharedPreferences where this Preference can read its value(s).
ShouldDisableViewbool. Checks whether this Preference should disable its view when it's action is disabled.
Summarystring. Documentation for this section has not yet been entered.
SummaryFormattedJava.Lang.ICharSequence. Returns the summary of this Preference.
Titlestring. Documentation for this section has not yet been entered.
TitleFormattedJava.Lang.ICharSequence. Returns the title of this Preference.
[read-only]
TitleResint. Returns the title resource ID of this Preference.
WidgetLayoutResourceint. Gets the layout resource for the controllable widget portion of this Preference.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

CompareTo(Android.Preferences.Preference) : int
Compares Preference objects based on order (if set), otherwise alphabetically on the titles.
GetView(Android.Views.View, Android.Views.ViewGroup) : Android.Views.View
Gets the View that will be shown in the Android.Preferences.PreferenceActivity.
NotifyDependencyChange(bool)
Notifies any listening dependents of a change that affects the dependency.
OnDependencyChanged(Android.Preferences.Preference, bool)
Called when the dependency changes.
OnParentChanged(Android.Preferences.Preference, bool)
Called when the implicit parent dependency changes.
PeekExtras() : Android.OS.Bundle
Return the extras Bundle object associated with this preference, returning null if there is not currently one.
RestoreHierarchyState(Android.OS.Bundle)
Restore this Preference hierarchy's previously saved state from the given container.
SaveHierarchyState(Android.OS.Bundle)
Store this Preference hierarchy's frozen state into the given container.
SetDefaultValue(Java.Lang.Object)
Sets the default value for this Preference, which will be set either if persistence is off or persistence is on and the preference is not found in the persistent storage.
SetIcon(int)
Sets the icon for this Preference with a resource ID.
SetSummary(int)
Sets the summary for this Preference with a resource ID.
SetTitle(int)
Sets the title for this Preference with a resource ID.
ShouldCommit() : bool
Returns whether the Android.Preferences.Preference should commit its saved value(s) in Preference.Editor.
ShouldDisableDependents() : bool
Checks whether this preference's dependents should currently be disabled.

Protected Methods

CallChangeListener(Java.Lang.Object) : bool
Call this method after the user changes the preference, but before the internal state is set.
FindPreferenceInHierarchy(string) : Android.Preferences.Preference
Finds a Preference in this hierarchy (the whole thing, even above/below your Android.Preferences.PreferenceScreen screen break) with the given key.
GetPersistedBoolean(bool) : bool
Attempts to get a persisted boolean from the Android.Content.ISharedPreferences.
GetPersistedFloat(float) : float
Attempts to get a persisted float from the Android.Content.ISharedPreferences.
GetPersistedInt(int) : int
Attempts to get a persisted int from the Android.Content.ISharedPreferences.
GetPersistedLong(long) : long
Attempts to get a persisted long from the Android.Content.ISharedPreferences.
GetPersistedString(string) : string
Attempts to get a persisted String from the Android.Content.ISharedPreferences.
NotifyChanged()
Should be called when the data of this Android.Preferences.Preference has changed.
NotifyHierarchyChanged()
Should be called when a Preference has been added/removed from this group, or the ordering should be re-evaluated.
OnAttachedToActivity()
Called when the Preference hierarchy has been attached to the Android.Preferences.PreferenceActivity.
OnAttachedToHierarchy(Android.Preferences.PreferenceManager)
Called when this Preference has been attached to a Preference hierarchy.
OnBindView(Android.Views.View)
Binds the created View to the data for this Preference.
OnClick()
Processes a click on the preference.
OnCreateView(Android.Views.ViewGroup) : Android.Views.View
Creates the View to be shown for this Preference in the Android.Preferences.PreferenceActivity.
OnGetDefaultValue(Android.Content.Res.TypedArray, int) : Java.Lang.Object
Called when a Preference is being inflated and the default value attribute needs to be read.
OnPrepareForRemoval()
Called when this Preference is being removed from the hierarchy.
OnRestoreInstanceState(Android.OS.IParcelable)
Hook allowing a Preference to re-apply a representation of its internal state that had previously been generated by Preference.OnSaveInstanceState.
OnSaveInstanceState() : Android.OS.IParcelable
Hook allowing a Preference to generate a representation of its internal state that can later be used to create a new instance with that same state.
OnSetInitialValue(bool, Java.Lang.Object)
Implement this to set the initial value of the Preference.
PersistBoolean(bool) : bool
Attempts to persist a boolean to the Android.Content.ISharedPreferences.
PersistFloat(float) : bool
Attempts to persist a float to the Android.Content.ISharedPreferences.
PersistInt(int) : bool
Attempts to persist an int to the Android.Content.ISharedPreferences.
PersistLong(long) : bool
Attempts to persist a long to the Android.Content.ISharedPreferences.
PersistString(string) : bool
Attempts to persist a String to the Android.Content.ISharedPreferences.
ShouldPersist() : bool
Checks whether, at the given time this method is called, this Preference should store/restore its value(s) into the Android.Content.ISharedPreferences.

Public Events

PreferenceChangeDocumentation for this section has not yet been entered.
PreferenceClickDocumentation for this section has not yet been entered.

Explicitly Implemented Interface Members

Java.Lang.IComparable.CompareToDocumentation for this section has not yet been entered.