public interface SharedPreferences
extends android.content.SharedPreferences
| Modifier and Type | Interface and Description |
|---|---|
static interface |
SharedPreferences.Editor |
static interface |
SharedPreferences.OnSharedPreferenceChangeListener |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(int id) |
boolean |
contains(String key) |
SharedPreferences.Editor |
edit() |
Map<String,?> |
getAll() |
boolean |
getBoolean(int id,
boolean defValue) |
boolean |
getBoolean(String key,
boolean defValue) |
float |
getFloat(int id,
float defValue) |
float |
getFloat(String key,
float defValue) |
Set<Float> |
getFloatSet(int id,
Set<Float> defValue) |
Set<Float> |
getFloatSet(String key,
Set<Float> defValue) |
int |
getInt(int id,
int defValue) |
int |
getInt(String key,
int defValue) |
Set<Integer> |
getIntSet(int id,
Set<Integer> defValue) |
Set<Integer> |
getIntSet(String key,
Set<Integer> defValue) |
org.json.JSONArray |
getJSONArray(int id,
org.json.JSONArray defValue) |
org.json.JSONArray |
getJSONArray(String key,
org.json.JSONArray defValue) |
org.json.JSONObject |
getJSONObject(int id,
org.json.JSONObject defValue) |
org.json.JSONObject |
getJSONObject(String key,
org.json.JSONObject defValue) |
long |
getLong(int id,
long defValue) |
long |
getLong(String key,
long defValue) |
Set<Long> |
getLongSet(int id,
Set<Long> defValue) |
Set<Long> |
getLongSet(String key,
Set<Long> defValue) |
String |
getString(int id,
String defValue) |
String |
getString(String key,
String defValue) |
Set<String> |
getStringSet(int id,
Set<String> defValue) |
Set<String> |
getStringSet(String key,
Set<String> defValue) |
String |
makeNameById(int id) |
void |
registerOnSharedPreferenceChangeListener(SharedPreferences.OnSharedPreferenceChangeListener listener) |
void |
setDefaultValues(android.os.Bundle bundle) |
void |
unregisterOnSharedPreferenceChangeListener(SharedPreferences.OnSharedPreferenceChangeListener listener) |
boolean contains(int id)
boolean contains(String key)
contains in interface android.content.SharedPreferencesSharedPreferences.Editor edit()
edit in interface android.content.SharedPreferencesboolean getBoolean(int id,
boolean defValue)
boolean getBoolean(String key, boolean defValue)
getBoolean in interface android.content.SharedPreferencesfloat getFloat(int id,
float defValue)
float getFloat(String key, float defValue)
getFloat in interface android.content.SharedPreferencesint getInt(int id,
int defValue)
int getInt(String key, int defValue)
getInt in interface android.content.SharedPreferencesorg.json.JSONArray getJSONArray(int id,
org.json.JSONArray defValue)
org.json.JSONArray getJSONArray(String key, org.json.JSONArray defValue)
org.json.JSONObject getJSONObject(int id,
org.json.JSONObject defValue)
org.json.JSONObject getJSONObject(String key, org.json.JSONObject defValue)
long getLong(int id,
long defValue)
long getLong(String key, long defValue)
getLong in interface android.content.SharedPreferencesString getString(String key, String defValue)
getString in interface android.content.SharedPreferencesSet<String> getStringSet(String key, Set<String> defValue)
getStringSet in interface android.content.SharedPreferencesString makeNameById(int id)
void registerOnSharedPreferenceChangeListener(SharedPreferences.OnSharedPreferenceChangeListener listener)
void setDefaultValues(android.os.Bundle bundle)
void unregisterOnSharedPreferenceChangeListener(SharedPreferences.OnSharedPreferenceChangeListener listener)
Copyright © 2012-2013. All Rights Reserved.