android.preference
Interface Preference.OnPreferenceChangeListener
- Enclosing class:
- Preference
public static interface 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.
onPreferenceChange
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.
Please submit a feedback, bug or feature