public enum LifecycleEvent extends java.lang.Enum<LifecycleEvent>
LifecycleService.LifecycleService| Enum Constant and Description |
|---|
PAUSE
The PAUSE event is fired when an application loses focus (e.g.
|
RESUME
Once an application is paused, when it is brought back as the primary application, it is considered to have
resumed.
|
| Modifier and Type | Method and Description |
|---|---|
static LifecycleEvent |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LifecycleEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LifecycleEvent PAUSE
public static final LifecycleEvent RESUME
public static LifecycleEvent[] values()
for (LifecycleEvent c : LifecycleEvent.values()) System.out.println(c);
public static LifecycleEvent 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