public enum RebootReason extends java.lang.Enum<RebootReason>
RebootReason enumeration is the class that includes the reboot reason related to Power off.| Enum Constant and Description |
|---|
HW_RESET_BUTTON
Hardware Reset button used to reset the device
|
POWER_KEY
Power button by menu used to power-off the device
|
UNKNOWN
Unknown device reboot
|
| Modifier and Type | Method and Description |
|---|---|
static RebootReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RebootReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RebootReason UNKNOWN
public static final RebootReason POWER_KEY
public static final RebootReason HW_RESET_BUTTON
public static RebootReason[] values()
for (RebootReason c : RebootReason.values()) System.out.println(c);
public static RebootReason 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