Class NativeVariant.Os
java.lang.Object
electrostatic4j.snaploader.platform.util.NativeVariant.Os
- Enclosing class:
NativeVariant
A namespace class exposing the Operating System Propositions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanTests whether the current system is an Android.static booleanTests whether the current system runtime is Desktop.static booleanisIos()Contemplated to test whether the current system runtime is an iOS os.static booleanisLinux()Tests whether the current system is a Linux.static booleanisMac()Tests whether the current system is a Mac.static booleanisWebOs()Contemplated to test whether the current system runtime is a web os.static booleanTests whether the current system is a Windows.
-
Method Details
-
isLinux
public static boolean isLinux()Tests whether the current system is a Linux.- Returns:
- true if the current OS is a Linux, false otherwise.
-
isWindows
public static boolean isWindows()Tests whether the current system is a Windows.- Returns:
- true if the current OS is a Windows, false otherwise.
-
isMac
public static boolean isMac()Tests whether the current system is a Mac.- Returns:
- true if the current OS is a Mac, false otherwise.
-
isAndroid
public static boolean isAndroid()Tests whether the current system is an Android.- Returns:
- true if the current OS is an Android, false otherwise.
-
isDesktop
public static boolean isDesktop()Tests whether the current system runtime is Desktop. A system runtime is said to be desktop if it's not an Android, and not Web-OS, and not iOS.- Returns:
- true if the current runtime is a desktop binary, false otherwise.
-
isWebOs
public static boolean isWebOs()Contemplated to test whether the current system runtime is a web os.- Returns:
- true if web-os; false otherwise. Current value is constantly false.
-
isIos
public static boolean isIos()Contemplated to test whether the current system runtime is an iOS os.- Returns:
- true if iOS; false otherwise. Current value is constantly false.
-