platform.js
No description.

File Location

/goog/labs/useragent/platform.js


Public Protected Private

Global Functions

goog.labs.userAgent.platform.getVersion() string
The version of the platform. We only determine the version for Windows, Mac, and Chrome OS. It doesn't make much sense on Linux. For Windows, we only look at the NT version. Non-NT-based versions (e.g. 95, 98, etc.) are given version 0.0.
Returns: string  The platform version or empty string if version cannot be determined.
code »
goog.labs.userAgent.platform.isAndroid() boolean
No description.
Returns: boolean  Whether the platform is Android.
code »
goog.labs.userAgent.platform.isChromeOS() boolean
No description.
Returns: boolean  Whether the platform is ChromeOS.
code »
goog.labs.userAgent.platform.isIos() boolean
No description.
Returns: boolean  Whether the platform is iOS.
code »
goog.labs.userAgent.platform.isIpad() boolean
No description.
Returns: boolean  Whether the platform is iPad.
code »
goog.labs.userAgent.platform.isIphone() boolean
No description.
Returns: boolean  Whether the platform is iPhone.
code »
goog.labs.userAgent.platform.isIpod() boolean
No description.
Returns: boolean  Whether the platform is iPod.
code »
goog.labs.userAgent.platform.isLinux() boolean
No description.
Returns: boolean  Whether the platform is Linux.
code »
goog.labs.userAgent.platform.isMacintosh() boolean
No description.
Returns: boolean  Whether the platform is Mac.
code »
goog.labs.userAgent.platform.isVersionOrHigher(version) boolean
No description.
Arguments:
version : string | number
The version to check.
Returns: boolean  Whether the browser version is higher or the same as the given version.
code »
goog.labs.userAgent.platform.isWindows() boolean
No description.
Returns: boolean  Whether the platform is Windows.
code »

Directory useragent

File Reference