Titanium.getPlatform
Description
Return the current platform, usually one of 'osx', 'win32', or 'linux'.
API Information
| Description | Return the current platform, usually one of 'osx', 'win32', or 'linux'. |
|---|---|
| Syntax | [window] Titanium.getPlatform |
| Arguments |
|
| Returns | (String) The current platform. |
| Available Since | 0.8 |
| Supported Platforms | linux osx win23 |
Examples
Javascript
alert(Titanium.getPlatform());
// Open an alert with the current platform inside, usually one of 'osx', 'win32', or 'linux'.
Titanium Desktop Center