public static enum Context.BackgroundMode extends java.lang.Enum<Context.BackgroundMode>
Enum Constant and Description |
---|
Normal
Foreground tracking
|
Task
Tracking in background
|
Modifier and Type | Method and Description |
---|---|
static Context.BackgroundMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Context.BackgroundMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Context.BackgroundMode Normal
public static final Context.BackgroundMode Task
public static Context.BackgroundMode[] values()
for (Context.BackgroundMode c : Context.BackgroundMode.values()) System.out.println(c);
public static Context.BackgroundMode 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