android.content.SharedPreferences.OnSharedPreferenceChangeListener |
Interface definition for a callback to be invoked when a shared preference is changed.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Called when a shared preference is changed, added, or removed.
|
Called when a shared preference is changed, added, or removed. This may be called even if a preference is set to its existing value.
This callback will be run on your main thread.
sharedPreferences |
The
SharedPreferences
that received
the change.
|
---|---|
key | The key of the preference that was changed, added, or removed. |