public static interface Preferences.PreferencesObserver
The observer of Preferences must implement the PreferencesObserver interface.
You can use the Preferences#registerObserver method to register an observer for the Preferences
object, and use the Preferences#unregisterObserver method to unregister the observer.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onChange(Preferences preferences,
String key) |
Observes the change of a certain preference.
|
void onChange(Preferences preferences, String key)
preferences - Indicates the changed Preferences object.key - Indicates the key of the changed preference.