public interface IPreferences
Modifier and Type | Method and Description |
---|---|
boolean |
commit()
Commit your preferences changes.
|
Map<String,?> |
getAll()
Retrieve all values from the preferences.
|
boolean |
getBoolean(String key,
boolean defValue)
Retrieve a boolean value from the preferences.
|
String |
getString(String key,
String defValue)
Retrieve a String value from the preferences.
|
void |
setString(String key,
String value)
Set a String value in the preferences editor, to be written back once commit() or apply() are called.
|
boolean getBoolean(String key, boolean defValue)
key
- defValue
- String getString(String key, String defValue)
key
- defValue
- void setString(String key, String value)
key
- value
- boolean commit()
Copyright © 2015. All Rights Reserved.