android.preference
public
static
interface
android.preference.Preference.OnPreferenceChangeListener
android.preference.Preference.OnPreferenceChangeListener |
|
Interface definition for a callback to be invoked when this
Preference's value has been changed by the user and is
about to be set and/or persisted. This gives the client a chance
to prevent setting and/or persisting the value.
Summary
Details
Public Methods
public
boolean
onPreferenceChange(Preference preference, Object newValue)
Called when this preference has been changed by the user. This is
called before the preference's state is about to be updated and
before the state is persisted.
Parameters
preference
| This preference. |
newValue
| The new value of the preference. |
Returns
- Whether or not to update this preference's state with the new value.