Skip to content

PKDEVICE.isLandscape

kerrishotts edited this page Nov 12, 2012 · 1 revision

(part of PKDEVICE)

Return Type: boolean

If the device is oriented to landscape orientation, returns true. If the device is in portrait orientation, returns false.

For example:

PKDEVICE.isLandscape();
// returns false

If the URL contains the word "landscape", the actual value will be overridden and return true. Useful for testing in desktop browsers.

Version

0.1 Introduced

0.2 Docs Valid

Clone this wiki locally