You can register a class implementing the IPreferenceChangeListener interface for the change of a preference with the given key.
Syntax
public
void
registerPreferenceChangeListener
(
String
key
,
IPreferenceChangeListener
changeListener
)
Parameters
-
key –
key of the preference
-
changeListener –
listener object to be registered
Exceptions
-
IllegalArgumentException –
if the argument is null.
Usage
If any of the arguments are null, an IllegalArgumentException is thrown.