Skip to main content

isAndroid, isIOS, isWindows, isMacOS, isLinux, isWeb, isMobileWeb,

Description

Boolean properties that tell you which platform the app is running on. Each returns true on that platform and false everywhere else.

PropertyDescription
isAndroidWhether the app is running on an Android device
isIOSWhether the app is running on an iOS device
isWindowsWhether the app is running on Windows
isMacOSWhether the app is running on macOS
isLinuxWhether the app is running on Linux
isWebWhether the app is running in a web environment
isMobileWebWhether the app is running in a mobile web environment

Parameters

None (property)

Returns

bool

Example

if ($app.isAndroid || $app.isIOS) {
var state = $app.getFoldableState();
$log.i("Foldable state: " + state);
} else {
$log.i("플랫폼: " + $app.operatingSystem);
}
  • $app.operatingSystem — operating system name as a string
  • $app.getFoldableState() — reads the foldable device state (mobile only)