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 an iPhone or false if not. Based on formFactor and platform.

Usage

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