| java.lang.Object | |
| ↳ | com.davidluoye.support.util.StaticSharedSettings |
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static boolean |
getBoolean(String key, boolean defValue)
Retrieve a boolean value from the preferences.
| ||||||||||
| static float |
getFloat(String key, float defValue)
Retrieve a float value from the preferences.
| ||||||||||
| static int |
getInt(String key, int defValue)
Retrieve a integer value from the preferences.
| ||||||||||
| static long |
getLong(String key, long defValue)
Retrieve a long value from the preferences.
| ||||||||||
| static String |
getString(String key, String defValue)
Retrieve a string value from the preferences.
| ||||||||||
| static Set<String> |
getStringSet(String key)
Retrieve a string list value from the preferences.
| ||||||||||
| synchronized static StaticSharedSettings | init(Context context, String name) | ||||||||||
| synchronized static StaticSharedSettings | init(SharedPreferences sp) | ||||||||||
| synchronized static StaticSharedSettings | init(Context context) | ||||||||||
| static boolean |
setBoolean(String key, boolean value)
Set a boolean value in the setting preferences
| ||||||||||
| static boolean |
setFloat(String key, float value)
Set a float value in the setting preferences
| ||||||||||
| static boolean |
setInt(String key, int value)
Set a integer value in the setting preferences
| ||||||||||
| static boolean |
setLong(String key, long value)
Set a long value in the setting preferences
| ||||||||||
| static boolean |
setString(String key, String value)
Set a string value in the setting preferences
| ||||||||||
| static boolean |
setStringSet(String key, Set<String> value)
Set a string list value in the setting preferences
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Retrieve a boolean value from the preferences.
Retrieve a float value from the preferences.
Retrieve a integer value from the preferences.
Retrieve a long value from the preferences.
Retrieve a string value from the preferences.
Retrieve a string list value from the preferences.
Set a boolean value in the setting preferences
Set a float value in the setting preferences
Set a integer value in the setting preferences
Set a long value in the setting preferences
Set a string value in the setting preferences
Set a string list value in the setting preferences