public enum NADeviceStatus extends Enum<NADeviceStatus>
Enum Constant and Description |
---|
IN_RANGE
The in range state, if a device is visible.
|
OUT_OF_RANGE
Out of range, if a device is not seen in the scans.
|
UNKNOWN
The unknown state, if a radio is off or equivalent.
|
Modifier and Type | Method and Description |
---|---|
String |
getName(Context context)
Returns a localized version of the status for consumption
by user interfaces.
|
static NADeviceStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NADeviceStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NADeviceStatus UNKNOWN
public static final NADeviceStatus IN_RANGE
public static final NADeviceStatus OUT_OF_RANGE
public static NADeviceStatus[] values()
for (NADeviceStatus c : NADeviceStatus.values()) System.out.println(c);
public static NADeviceStatus 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 null