public class OsDetectionImpl extends Object implements OsDetection
OsDetection implementation can either be generated be GWT Compiler using code>OSDetectionGenerator
or this implementation can be used. GWT Generation blows up the permutation Rate by factor 7.| Constructor and Description |
|---|
OsDetectionImpl()
Default constructor.
|
OsDetectionImpl(String agent)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAndroid()
Are we running on an Android device
|
boolean |
isAndroidPhone()
Are we running on an android phone.
|
boolean |
isAndroidTablet()
Are we running on an android tablet
|
boolean |
isBlackBerry()
Are we running on a blackberry device.
|
boolean |
isDesktop()
Are we running in a desktop browser (chrome, safari or similiar)
|
boolean |
isIOs()
Are we running on an ios device
|
boolean |
isIOS5()
Returns true if Ios5 is detected.
|
boolean |
isIOS6()
Returns true if Ios6 is detected.
|
boolean |
isIOS7()
Returns true if Ios7 is detected.
|
boolean |
isIPad()
Are we running on an ipad
|
boolean |
isIPhone()
Are we running on an iphone or ipod touch
|
boolean |
isPhone()
Are we running on a phone.
|
boolean |
isRetina()
Are we running on the iphone retina display
|
boolean |
isTablet()
Are we running on a tablet device
|
boolean |
isWebkit()
Are we running on a webkit device/browser.
|
public OsDetectionImpl()
public OsDetectionImpl(String agent)
agent - the browsers user agent.public boolean isAndroid()
OsDetectionisAndroid in interface OsDetectionpublic boolean isIPhone()
OsDetectionisIPhone in interface OsDetectionpublic boolean isIPad()
OsDetectionisIPad in interface OsDetectionpublic boolean isIOs()
OsDetectionisIOs in interface OsDetectionpublic boolean isIOS5()
OsDetectionisIOS5 in interface OsDetectionpublic boolean isIOS6()
OsDetectionisIOS6 in interface OsDetectionpublic boolean isIOS7()
OsDetectionisIOS7 in interface OsDetectionpublic boolean isRetina()
OsDetectionisRetina in interface OsDetectionpublic boolean isDesktop()
OsDetectionisDesktop in interface OsDetectionpublic boolean isTablet()
OsDetectionisTablet in interface OsDetectionpublic boolean isAndroidTablet()
OsDetectionisAndroidTablet in interface OsDetectionpublic boolean isAndroidPhone()
OsDetectionisAndroidPhone in interface OsDetectionpublic boolean isPhone()
OsDetectionisPhone in interface OsDetectionpublic boolean isBlackBerry()
OsDetectionisBlackBerry in interface OsDetectionpublic boolean isWebkit()
OsDetectionisWebkit in interface OsDetectionCopyright © 2011–2015 SWM. All rights reserved.