Android
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

Public Methods

          boolean  onPreferenceChange(Preference preference, Object newValue)
Called when this preference has been changed by the user.

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.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48