Quantcast
Channel: Android*
Viewing all articles
Browse latest Browse all 531

orientation Property

$
0
0

This property returns the current orientation of the device

intel.xdk.device.orientation

Description:

This property returns the current orientation of the device. The value returned will be either 0, 90, -90, or 180.

Example:


//detect the current orientation of the device
if (intel.xdk.device.orientation == "90" || intel.xdk.device.orientation == "-90")
{
        //landscape
}
else
{
        //portrait
}
             

Version:

This property is available in appMobi Version 3.0.0

English

Viewing all articles
Browse latest Browse all 531


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>