Enum Constant and Description |
---|
ANDROID
The android platform provides implementations to access the applicable services available on Android.
|
DESKTOP
The desktop platform provides implementations to access the applicable services available on
desktop operating systems (such as Windows, Linux, and Mac OS).
|
IOS
The ios platform provides implementations to access the applicable services available on iOS.
|
Modifier and Type | Method and Description |
---|---|
static Platform |
getCurrent()
Returns the current platform that the code is being executed on.
|
static boolean |
isAndroid()
Returns whether the current platform is android.
|
static boolean |
isDesktop()
Returns whether the current platform is desktop.
|
static boolean |
isIOS()
Returns whether the current platform is iOS.
|
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 DESKTOP
public static final Platform ANDROID
public static final Platform IOS
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 static final Platform getCurrent()
Platform
.public static final boolean isDesktop()
public static final boolean isAndroid()
public static final boolean isIOS()