public interface SharedPreferencesFactory
SharedPreferences.| Modifier and Type | Interface and Description |
|---|---|
static class |
SharedPreferencesFactory.SimpleFactory
A simple implementation of
SharedPreferencesFactory which may be used to create
instances of SharedPreferences with a desired name and file creation mode via either
#SimpleFactory(String) or #SimpleFactory(String, int). |
| Modifier and Type | Field and Description |
|---|---|
static SharedPreferencesFactory |
DEFAULT
A
SharedPreferencesFactory which may be used to create default shared preferences. |
| Modifier and Type | Method and Description |
|---|---|
SharedPreferences |
createPreferences(Context context)
Creates a new instance of SharedPreferences for the given context.
|
static final SharedPreferencesFactory DEFAULT
SharedPreferencesFactory which may be used to create default shared preferences.@NonNull SharedPreferences createPreferences(@NonNull Context context)
context - Context used to create shared preferences.Context.getSharedPreferences(String, int)