userAgent.product

Classes


Public Protected Private

Global Functions

goog.userAgent.product.determineVersion_() string
No description.
Returns: string  The string that describes the version number of the user agent product. This is a string rather than a number because it may contain 'b', 'a', and so on.
code »
goog.userAgent.product.execRegExp_(re) Array
Run regexp's exec() on the userAgent string.
Arguments:
re : !RegExp
Regular expression.
Returns: Array  A result array, or null for no match.
code »
goog.userAgent.product.getFirstRegExpGroup_(re) string
Return the first group of the given regex.
Arguments:
re : !RegExp
Regular expression with at least one group.
Returns: string  Contents of the first group or an empty string if no match.
code »
goog.userAgent.product.init_()
Right now we just focus on Tier 1-3 browsers at: http://wiki/Nonconf/ProductPlatformGuidelines As well as the YUI grade A browsers at: http://developer.yahoo.com/yui/articles/gbs/
code »
goog.userAgent.product.isVersion(version) boolean
Whether the user agent product version is higher or the same as the given version.
Arguments:
version : string | number
The version to check.
Returns: boolean  Whether the user agent product version is higher or the same as the given version.
code »

Global Properties

goog.userAgent.product.ANDROID :
Whether the code is running on the default browser on an Android phone.
Code »
goog.userAgent.product.ASSUME_ANDROID :
No description.
Code »
goog.userAgent.product.ASSUME_CAMINO :
No description.
Code »
goog.userAgent.product.ASSUME_CHROME :
No description.
Code »
goog.userAgent.product.ASSUME_FIREFOX :
No description.
Code »
goog.userAgent.product.ASSUME_IPAD :
No description.
Code »
goog.userAgent.product.ASSUME_IPHONE :
No description.
Code »
goog.userAgent.product.ASSUME_SAFARI :
No description.
Code »
goog.userAgent.product.CAMINO :
Whether the code is running on the Camino web browser.
Code »
goog.userAgent.product.CHROME :
Whether the code is running on the Chrome web browser.
Code »
goog.userAgent.product.FIREFOX :
Whether the code is running on the Firefox web browser.
Code »
goog.userAgent.product.IE :
Whether the code is running on an IE web browser.
Code »
goog.userAgent.product.IPAD :
Whether the code is running on an iPad.
Code »
goog.userAgent.product.IPHONE :
Whether the code is running on an iPhone or iPod touch.
Code »
goog.userAgent.product.OPERA :
Whether the code is running on the Opera web browser.
Code »
goog.userAgent.product.PRODUCT_KNOWN_ :
Whether we know the product type at compile-time.
Code »
goog.userAgent.product.SAFARI :
Whether the code is running on the Safari web browser.
Code »
goog.userAgent.product.VERSION :
The version of the user agent. This is a string because it might contain 'b' (as in beta) as well as multiple dots.
Code »
goog.userAgent.product.detectedAndroid_ :
Whether the code is running on the default browser on an Android phone.
Code »
goog.userAgent.product.detectedCamino_ :
Whether the code is running on the Camino web browser.
Code »
goog.userAgent.product.detectedChrome_ :
Whether the code is running on the Chrome web browser.
Code »
goog.userAgent.product.detectedFirefox_ :
Whether the code is running on the Firefox web browser.
Code »
goog.userAgent.product.detectedIpad_ :
Whether the code is running on an iPad
Code »
goog.userAgent.product.detectedIphone_ :
Whether the code is running on an iPhone or iPod touch.
Code »
goog.userAgent.product.detectedSafari_ :
Whether the code is running on the Safari web browser.
Code »

Package userAgent

Package Reference