Titanium.platform

Description

Titanium platform name property. For iPhone, the value is 'iphone' (regardless of version). For Android, the value is 'android'.

API Information

Description Titanium platform name property
Syntax [window] Titanium.platform
Available Since 0.4
Supported Platforms
android 1.5
iphone 2.2.1, 3.0, 3.1

Examples

Javascript

if (Titanium.platform == 'iphone') { alert('this is an iphone'); }
Last Modified on January 17, 2010, 06:01 PM by Nika Jones Edit | History