Skip to main content

operatingSystem

Description

Returns the name of the operating system the app is running on, as a string.

Parameters

None (property)

Returns

String — one of 'android', 'ios', 'windows', 'macos', 'linux'

Example

var os = $app.operatingSystem;
$log.i("운영 체제: " + os);
  • $app.isAndroid — Whether the platform is Android
  • $app.isIOS — Whether the platform is iOS
  • $app.isWindows — Whether the platform is Windows
  • $app.isMacOS — Whether the platform is macOS
  • $app.isLinux — Whether the platform is Linux
  • $app.isWeb — Whether the platform is the web
  • $app.isMobileWeb — Whether the platform is the mobile web