Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public interface PreferenceListener
Respond to changes to the Preferences
See also
Methods
public abstract void preferenceChanged(String pref, Object priorValue, Object revisedValue) | Respond to a change in the Preference. |
Method details
preferenceChanged
public abstract void preferenceChanged(String pref, Object priorValue, Object revisedValue)Respond to a change in the Preference. This method is only called if the value has changed.
Parameters
prefString- The preference key
priorValueObject- The value prior to the change
revisedValueObject- The new value, which is guaranteed to be different from priorValue