You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns the form factor of the device. If the device is a phone (or similarly sized device), phone is returned. If the device is a tablet (or similarly sized device), tablet is returned.
Example:
PKDEVICE.formFactor();
// returns "tablet"
Notes
For iOS, phone is returned for all platforms except for the iPad, where tablet is returned.
For other platforms, if the width of the screen in either orientation is less than 1024, phone is returned. Otherwise tablet is returned.