We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
(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.
true
false
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.
0.1 Introduced
0.2 Docs Valid