device.js
No description.

File Location

/goog/labs/useragent/device.js


Public Protected Private

Global Functions

goog.labs.userAgent.device.isDesktop() boolean
No description.
Returns: boolean  Whether the user is using a desktop computer (which we assume to be the case if they are not using either a mobile or tablet device).
code »
goog.labs.userAgent.device.isMobile() boolean
Currently we detect the iPhone, iPod and Android mobiles (devices that have both Android and Mobile in the user agent string).
Returns: boolean  Whether the user is using a mobile device.
code »
goog.labs.userAgent.device.isTablet() boolean
Currently we detect Kindle Fire, iPad, and Android tablets (devices that have Android but not Mobile in the user agent string).
Returns: boolean  Whether the user is using a tablet.
code »

Directory useragent

File Reference