Android.Preferences.Preference: Method Members

The methods of Android.Preferences.Preference are listed below. For a list of all members, see the Preference Members list.

See Also: Inherited members from Java.Lang.Object

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.