public static enum SharedPref.Scope extends Enum<SharedPref.Scope>
Enum Constant and Description |
---|
ACTIVITY
The name of the SharedPreference will contain the name of the
Activity and the name annotated interface.
|
ACTIVITY_DEFAULT
The name of the SharedPreference will contain the name of the
Activity (also available through activity.getPreferences()).
|
APPLICATION_DEFAULT
The default shared SharedPreference.
|
UNIQUE
The name of the SharedPreference will be the name of the annotated
interface.
|
Modifier and Type | Method and Description |
---|---|
static SharedPref.Scope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SharedPref.Scope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SharedPref.Scope APPLICATION_DEFAULT
public static final SharedPref.Scope ACTIVITY
public static final SharedPref.Scope ACTIVITY_DEFAULT
public static final SharedPref.Scope UNIQUE
public static SharedPref.Scope[] values()
for (SharedPref.Scope c : SharedPref.Scope.values()) System.out.println(c);
public static SharedPref.Scope valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2010-2015. All Rights Reserved.