public enum PreferencesType extends java.lang.Enum<PreferencesType>
| Enum Constant and Description |
|---|
ACTIVITY |
DEFAULT_SHARED
Default.
|
FILE |
| Modifier and Type | Method and Description |
|---|---|
static PreferencesType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PreferencesType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PreferencesType DEFAULT_SHARED
DefaultSharedPreferences,
android.preference.PreferenceManager#getDefaultSharedPreferences(
android.content.Context)public static final PreferencesType ACTIVITY
ActivityPreferences,
android.app.Activity#getPreferences(int)public static final PreferencesType FILE
FilePreferences,
android.content.Context#getSharedPreferences(String, int)public static PreferencesType[] values()
for (PreferencesType c : PreferencesType.values()) System.out.println(c);
public static PreferencesType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null