public static enum Receiver.RegisterAt extends Enum<Receiver.RegisterAt>
Enum Constant and Description |
---|
OnAttachOnDetach
Register in the onAttach method, unregister in the onDetach method.
|
OnCreateOnDestroy
Register in the onCreate method, unregister in the onDestroy method.
|
OnResumeOnPause
Register in the onResume method, unregister in the onPause method.
|
OnStartOnStop
Register in the onStart method, unregister in the onStop method.
|
Modifier and Type | Method and Description |
---|---|
static Receiver.RegisterAt |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Receiver.RegisterAt[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Receiver.RegisterAt OnCreateOnDestroy
public static final Receiver.RegisterAt OnStartOnStop
public static final Receiver.RegisterAt OnResumeOnPause
public static final Receiver.RegisterAt OnAttachOnDetach
public static Receiver.RegisterAt[] values()
for (Receiver.RegisterAt c : Receiver.RegisterAt.values()) System.out.println(c);
public static Receiver.RegisterAt 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.