Skip to content

PKDEVICE.isPortrait

kerrishotts edited this page Nov 12, 2012 · 1 revision

(part of PKDEVICE)

Return Type: boolean

Returns true if the device is oriented in the portrait orientation. Returns false if the device is oriented in the landscape orientation.

For example:

PKDEVICE.isPortrait();
// returns true

The return value can be forced to true if the word "portrait" is in the URL -- useful for testing in a browser.

Version

0.1 Introduced

0.2 Docs Valid

Clone this wiki locally