Utility methods to detect current platform.
Signature | Description |
---|---|
isWebView() | Returns whether app is running in Cordova. |
isIOS() | Returns whether the OS is iOS. |
isAndroid() | Returns whether the OS is Android. |
isIPhone() | Returns whether the device is iPhone. |
isIPad() | Returns whether the device is iPad. |
isBlackBerry() | Returns whether the device is BlackBerry. |
isOpera() | Returns whether the browser is Opera. |
isFirefox() | Returns whether the browser is Firefox. |
isSafari() | Returns whether the browser is Safari. |
isChrome() | Returns whether the browser is Chrome. |
isIE() | Returns whether the browser is Internet Explorer. |
isIOS7above() | Returns whether the iOS version is 7 or above. |
Returns whether app is running in Cordova.
Returns whether the OS is iOS.
Returns whether the OS is Android.
Returns whether the device is iPhone.
Returns whether the device is iPad.
Returns whether the device is BlackBerry.
Returns whether the browser is Opera.
Returns whether the browser is Firefox.
Returns whether the browser is Safari.
Returns whether the browser is Chrome.
Returns whether the browser is Internet Explorer.
Returns whether the iOS version is 7 or above.