public static enum DeviceInfo.DeviceType extends Enum<DeviceInfo.DeviceType>
Enum Constant and Description |
---|
BROWSER |
DESKTOP |
LAPTOP |
MOBILE |
OTHER |
SERVER |
TABLET |
TV |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static DeviceInfo.DeviceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DeviceInfo.DeviceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeviceInfo.DeviceType BROWSER
public static final DeviceInfo.DeviceType DESKTOP
public static final DeviceInfo.DeviceType LAPTOP
public static final DeviceInfo.DeviceType MOBILE
public static final DeviceInfo.DeviceType OTHER
public static final DeviceInfo.DeviceType SERVER
public static final DeviceInfo.DeviceType TABLET
public static final DeviceInfo.DeviceType TV
public static final DeviceInfo.DeviceType UNKNOWN
public static DeviceInfo.DeviceType[] values()
for (DeviceInfo.DeviceType c : DeviceInfo.DeviceType.values()) System.out.println(c);
public static DeviceInfo.DeviceType 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 © 2021. All rights reserved.