Skip to content
Kerri Shotts edited this page Apr 5, 2014 · 1 revision

(part of device)

Parameters:

  • None

Returns: boolean

Returns true if the device is in a portrait orientation or false if not.

Usage

if (_y.device.isPortrait()) {
  // do portrait specific code
} else
{ // other code
}
Clone this wiki locally