platform Property

The platform property returns a text string identifying the platform that the application is running on.

intel.xdk.device.platform

Description:

The platform property returns a text string identifying the platform that application is running on. Valid values include:

Platform Information
iOS This platform is used on Apple's iPhone, iPod, and iPad devices.
Android This platform is used on any device that runs the Android operating system.

Example:


alert(intel.xdk.device.platform);
             
For more complete information about compiler optimizations, see our Optimization Notice.