isnative

This property is a boolean value indicating if the app is currently running on a native iOS or Android device

intel.xdk.isnative

Example:


document.addEventListener("intel.xdk.device.ready",onDeviceReady,false);

function onDeviceReady(evt)
{
  if (intel.xdk.isnative==true)
  {
    // Application is running on native device
    console.log("Running on a native device");  
  }
}
                          
Einzelheiten zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.