public final class SecurePreferences.Editor
extends java.lang.Object
implements android.content.SharedPreferences.Editor
SharedPreferences.Editor.
Used for modifying values in a SecurePreferences object. All
changes you make in an editor are batched, and not copied back to the
original SecurePreferences until you call commit() or
apply().
| Modifier and Type | Method and Description |
|---|---|
void |
apply() |
android.content.SharedPreferences.Editor |
clear() |
boolean |
commit() |
android.content.SharedPreferences.Editor |
putBoolean(java.lang.String key,
boolean value) |
android.content.SharedPreferences.Editor |
putFloat(java.lang.String key,
float value) |
android.content.SharedPreferences.Editor |
putInt(java.lang.String key,
int value) |
android.content.SharedPreferences.Editor |
putLong(java.lang.String key,
long value) |
android.content.SharedPreferences.Editor |
putString(java.lang.String key,
java.lang.String value) |
android.content.SharedPreferences.Editor |
putStringSet(java.lang.String key,
java.util.Set<java.lang.String> values) |
android.content.SharedPreferences.Editor |
putUnencryptedString(java.lang.String key,
java.lang.String value)
This is useful for storing values that have be encrypted by something
else or for testing
|
android.content.SharedPreferences.Editor |
remove(java.lang.String key) |
public android.content.SharedPreferences.Editor putString(java.lang.String key,
java.lang.String value)
putString in interface android.content.SharedPreferences.Editorpublic android.content.SharedPreferences.Editor putUnencryptedString(java.lang.String key,
java.lang.String value)
key - - encrypted as usualvalue - will not be encryptedpublic android.content.SharedPreferences.Editor putStringSet(java.lang.String key,
java.util.Set<java.lang.String> values)
putStringSet in interface android.content.SharedPreferences.Editorpublic android.content.SharedPreferences.Editor putInt(java.lang.String key,
int value)
putInt in interface android.content.SharedPreferences.Editorpublic android.content.SharedPreferences.Editor putLong(java.lang.String key,
long value)
putLong in interface android.content.SharedPreferences.Editorpublic android.content.SharedPreferences.Editor putFloat(java.lang.String key,
float value)
putFloat in interface android.content.SharedPreferences.Editorpublic android.content.SharedPreferences.Editor putBoolean(java.lang.String key,
boolean value)
putBoolean in interface android.content.SharedPreferences.Editorpublic android.content.SharedPreferences.Editor remove(java.lang.String key)
remove in interface android.content.SharedPreferences.Editorpublic android.content.SharedPreferences.Editor clear()
clear in interface android.content.SharedPreferences.Editorpublic boolean commit()
commit in interface android.content.SharedPreferences.Editorpublic void apply()
apply in interface android.content.SharedPreferences.Editor