protected void |
addDefaultPreferences()
|
Can be used to add application specific default preferences. |
protected Object |
confirmPreference(String)
|
Validates changed preference if it can be changed. |
public boolean |
containsPreference(String)
|
Checks the existence of the given preference. |
public Map< String,?> |
getAllPreferences()
|
|
public Boolean |
getBooleanPreference(String)
|
Returns the value of the given preference or null if there is no preference with the given key. |
public Context |
getContext()
|
Returns the context. |
public Float |
getFloatPreference(String)
|
Returns the value of the given preference or null if there is no preference with the given key. |
public Integer |
getIntPreference(String)
|
Returns the value of the given preference or null if there is no preference with the given key. |
public Long |
getLongPreference(String)
|
Returns the value of the given preference or null if there is no preference with the given key. |
public String |
getStringPreference(String)
|
Returns the value of the given preference or null if there is no preference with the given key. |
public void |
onSharedPreferenceChanged(SharedPreferences, final String)
|
|
public synchronized void |
registerPreferenceChangeListener(String, IPreferenceChangeListener)
|
You can register a class implementing the IPreferenceChangeListener interface for the change of a preference with the given key. |
public void |
removePreference(String)
|
Removes the preferences with the given key. |
public void |
resetPreference(String)
|
Resets the preference's value to it's default value or to null if there is no default value for the given preference. |
public void |
setBooleanPreference(String, boolean)
|
Sets and validates and persists the value of the preferences with the given type. |
public void |
setFloatPreference(String, float)
|
Sets and validates and persists the value of the preferences with the given type. |
public void |
setIntPreference(String, int)
|
Sets and validates and persists the value of the preferences with the given type. |
public void |
setLongPreference(String, long)
|
Sets and validates and persists the value of the preferences with the given type. |
public void |
setStringPreference(String, String)
|
Sets and validates and persists the value of the preferences with the given type. |
public synchronized void |
unRegisterPreferenceChangeListener(String, IPreferenceChangeListener)
|
You can unregister a change listener. |