Class createjs.UserAgent
Defined in: user_agent.js.
Constructor Attributes | Constructor Name and Description |
---|---|
createjs.UserAgent(userAgent, platform)
A class that parses a user-agent string.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
createjs.UserAgent.getUserAgent()
Returns the user-agent string.
|
<static> |
createjs.UserAgent.isAndroid()
Returns whether the host platform is Android.
|
<static> |
createjs.UserAgent.isAndroidBrowser()
Returns whether the hosting browser is a stock browser or a WebView of
Android (prior to 4.4).
|
<static> |
createjs.UserAgent.isChrome()
Returns whether the hosting browser is Chrome (WebKit or Blink).
|
<static> |
createjs.UserAgent.isEdge()
Returns whether the hosting browser is Microsoft Edge.
|
<static> |
createjs.UserAgent.isFirefox()
Returns whether the hosting browser is Firefox (Gecko).
|
<static> |
createjs.UserAgent.isIPhone()
Returns whether the host platform is iPhone or iPad.
|
<static> |
createjs.UserAgent.isLinux()
Returns whether the host platform is Linux.
|
<static> |
createjs.UserAgent.isMac()
Returns whether the host platform is Mac OS X.
|
<static> |
createjs.UserAgent.isMSIE()
Returns whether the hosting browser is Internet Explorer (Trident).
|
<static> |
createjs.UserAgent.isOpera()
Returns whether the hosting browser is Opera (Presto).
|
<static> |
createjs.UserAgent.isSafari()
Returns whether the hosting browser is Safari (WebKit).
|
<static> |
createjs.UserAgent.isUnknown()
Returns whether the hosting browser is an unknown browser.
|
<static> |
createjs.UserAgent.isWebKit()
Returns whether the host platform uses WebKit (or blink).
|
<static> |
createjs.UserAgent.isWindows()
Returns whether the host platform is Windows.
|
Class Detail
createjs.UserAgent(userAgent, platform)
A class that parses a user-agent string.
- Parameters:
- {string} userAgent
- {string} platform
Method Detail
<static>
{string}
createjs.UserAgent.getUserAgent()
Returns the user-agent string.
- Returns:
- {string}
<static>
{boolean}
createjs.UserAgent.isAndroid()
Returns whether the host platform is Android.
- Returns:
- {boolean}
<static>
{boolean}
createjs.UserAgent.isAndroidBrowser()
Returns whether the hosting browser is a stock browser or a WebView of
Android (prior to 4.4).
- Returns:
- {boolean}
<static>
{boolean}
createjs.UserAgent.isChrome()
Returns whether the hosting browser is Chrome (WebKit or Blink).
- Returns:
- {boolean}
<static>
{boolean}
createjs.UserAgent.isEdge()
Returns whether the hosting browser is Microsoft Edge.
- Returns:
- {boolean}
<static>
{boolean}
createjs.UserAgent.isFirefox()
Returns whether the hosting browser is Firefox (Gecko).
- Returns:
- {boolean}
<static>
{boolean}
createjs.UserAgent.isIPhone()
Returns whether the host platform is iPhone or iPad.
- Returns:
- {boolean}
<static>
{boolean}
createjs.UserAgent.isLinux()
Returns whether the host platform is Linux.
- Returns:
- {boolean}
<static>
{boolean}
createjs.UserAgent.isMac()
Returns whether the host platform is Mac OS X.
- Returns:
- {boolean}
<static>
{boolean}
createjs.UserAgent.isMSIE()
Returns whether the hosting browser is Internet Explorer (Trident).
- Returns:
- {boolean}
<static>
{boolean}
createjs.UserAgent.isOpera()
Returns whether the hosting browser is Opera (Presto). (Newer versions of
Opera use Blink and they are treated as Chrome.)
- Returns:
- {boolean}
<static>
{boolean}
createjs.UserAgent.isSafari()
Returns whether the hosting browser is Safari (WebKit).
- Returns:
- {boolean}
<static>
{boolean}
createjs.UserAgent.isUnknown()
Returns whether the hosting browser is an unknown browser.
- Returns:
- {boolean}
<static>
{boolean}
createjs.UserAgent.isWebKit()
Returns whether the host platform uses WebKit (or blink).
- Returns:
- {boolean}
<static>
{boolean}
createjs.UserAgent.isWindows()
Returns whether the host platform is Windows.
- Returns:
- {boolean}