public enum DeviceType extends java.lang.Enum<DeviceType>
Enum Constant and Description |
---|
COMPUTER
Desktop or laptop computer.
|
CONSOLE
Game consoles such as Wii, PlayStation and XBox.
|
PHONE
Smartphones or telephones (note that so-called Phablets are in this category).
|
SDK
The user uses a simulator such as Google's Android SDK.
|
TABLET
Tablets such as iPads, Galaxy Tabs.
|
UNKNOWN
The device type could not be determined.
|
UNKNOWN_MOBILE
The device type could not be determined, but it is assumed to be mobile (either PHONE or TABLET.)
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLabel() |
boolean |
isMobile() |
java.lang.String |
toString() |
static DeviceType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DeviceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeviceType PHONE
public static final DeviceType TABLET
public static final DeviceType COMPUTER
public static final DeviceType SDK
public static final DeviceType UNKNOWN
public static final DeviceType CONSOLE
public static final DeviceType UNKNOWN_MOBILE
public static DeviceType[] values()
for (DeviceType c : DeviceType.values()) System.out.println(c);
public static DeviceType 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 nullpublic boolean isMobile()
public java.lang.String toString()
toString
in class java.lang.Enum<DeviceType>
public java.lang.String getLabel()