Enum Constant and Description |
---|
ANDROID_NATIVE |
ANDROID_WEB |
ANY |
CHROME |
FIREFOX |
HTML_UNIT |
IE |
IOS_NATIVE |
OPERA |
SAFARI |
Modifier and Type | Method and Description |
---|---|
static Platform |
fromString(java.lang.String input)
Gets the platform constant based on the string passed.
|
java.lang.String |
getValue()
Gets the string associated with current enumeration value.
|
boolean |
isAndroidNative()
Identifies if current platform is Android native.
|
boolean |
isIOSNative()
Identifies if current platform is iOS native.
|
boolean |
isMobile()
Identifies if current platform belongs to mobile platforms.
|
boolean |
isWeb()
Identifies if current platform belongs to the group of web platforms.
|
static Platform |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Platform[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Platform CHROME
public static final Platform FIREFOX
public static final Platform IE
public static final Platform SAFARI
public static final Platform OPERA
public static final Platform HTML_UNIT
public static final Platform ANDROID_NATIVE
public static final Platform ANDROID_WEB
public static final Platform IOS_NATIVE
public static final Platform ANY
public static Platform[] values()
for (Platform c : Platform.values()) System.out.println(c);
public static Platform 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 java.lang.String getValue()
public boolean isAndroidNative()
public boolean isIOSNative()
public boolean isMobile()
public boolean isWeb()
public static Platform fromString(java.lang.String input)
input
- the string representing platform to look for.