We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
(part of device)
Parameters:
Returns: boolean
Returns true if the device is in a portrait orientation or false if not.
true
false
if (_y.device.isPortrait()) { // do portrait specific code } else { // other code }