@@ -87,6 +87,7 @@ public enum NativeVariant {
8787 private static final String Linux = "Linux" ;
8888 private static final String Windows = "Windows" ;
8989 private static final String Mac = "Mac" ;
90+ private static final String WebOs = "WebOs" ;
9091 private static final String Dalvik = "Dalvik" ;
9192
9293 private final String property ;
@@ -136,6 +137,37 @@ public static boolean isMac() {
136137 public static boolean isAndroid () {
137138 return JVM .getProperty ().contains (NativeVariant .Dalvik );
138139 }
140+
141+ /**
142+ * Tests whether the current system runtime is Desktop. A
143+ * system runtime is said to be desktop if it's not an Android,
144+ * and not Web-OS, and not iOS.
145+ *
146+ * @return true if the current runtime is a desktop binary, false otherwise.
147+ */
148+ public static boolean isDesktop () {
149+ return !isAndroid () && !isWebOs () && !isIos ();
150+ }
151+
152+ /**
153+ * Contemplated to test whether the current system runtime is
154+ * a web os.
155+ *
156+ * @return true if web-os; false otherwise. Current value is constantly false.
157+ */
158+ public static boolean isWebOs () {
159+ return false ;
160+ }
161+
162+ /**
163+ * Contemplated to test whether the current system runtime is
164+ * an iOS os.
165+ *
166+ * @return true if iOS; false otherwise. Current value is constantly false.
167+ */
168+ public static boolean isIos () {
169+ return false ;
170+ }
139171 }
140172
141173 /**
0 commit comments