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
  1. None.
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'.
Last Modified on February 24, 2010, 07:02 AM by Jeremy G Edit | History