isAndroid, isIOS, isWindows, isMacOS, isLinux, isWeb, isMobileWeb,
Description
アプリが実行中のプラットフォームを確認するブール型プロパティです。該当するプラットフォームであればtrue、それ以外ではfalseを返します。
| プロパティ | 説明 |
|---|---|
isAndroid | Androidデバイスで実行中かどうか |
isIOS | iOSデバイスで実行中かどうか |
isWindows | Windowsで実行中かどうか |
isMacOS | macOSで実行中かどうか |
isLinux | Linuxで実行中かどうか |
isWeb | Web環境で実行中かどうか |
isMobileWeb | モバイルWeb環境で実行中かどうか |
Parameters
なし(プロパティ)
Returns
bool
Example
if ($app.isAndroid || $app.isIOS) {
var state = $app.getFoldableState();
$log.i("Foldable state: " + state);
} else {
$log.i("플랫폼: " + $app.operatingSystem);
}
Related
$app.operatingSystem— OS名の文字列$app.getFoldableState()— フォルダブルデバイスの状態を取得(モバイル専用)