public interface SharedPreferencesContext
SharedPreferences.| Modifier and Type | Method and Description |
|---|---|
SharedPreferences |
getSharedPreferences()
Returns the shared preferences instance used by this context.
|
void |
setSharedPreferences(SharedPreferences preferences)
Sets an instance of shared preferences to be used by this context.
|
void setSharedPreferences(@Nullable SharedPreferences preferences)
preferences - The desired instance of preferences to be used. May be null to no
use shared preferences.getSharedPreferences()@Nullable SharedPreferences getSharedPreferences()
null if no preferences has been
associated with this context.setSharedPreferences(SharedPreferences)