public class UserAgent extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
UserAgent.Browser |
static class |
UserAgent.Device |
static class |
UserAgent.OS |
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY |
static UserAgent |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
UserAgent.Browser |
getBrowser() |
UserAgent.Device |
getDevice() |
UserAgent.OS |
getOS() |
boolean |
is(UserAgent.Device device) |
boolean |
isChrome() |
boolean |
isFirefox() |
boolean |
isFirefox3() |
boolean |
isFirefox4Up() |
boolean |
isIE() |
boolean |
isIE10Up() |
boolean |
isIE11Up() |
boolean |
isIE678() |
boolean |
isIE9Down() |
boolean |
isIE9Up() |
boolean |
isMobile() |
boolean |
isOpera() |
boolean |
isSafari() |
boolean |
isTablet() |
boolean |
isUCWeb() |
boolean |
isWebKit() |
static void |
main(String[] args) |
static UserAgent |
parse(String userAgent) |
static UserAgent |
set(String userAgent)
Deprecated.
|
String |
toString() |
static UserAgent |
valueOf(String userAgent) |
public static final UserAgent UNKNOWN
public static final String KEY
public UserAgent.OS getOS()
public UserAgent.Device getDevice()
public final boolean is(UserAgent.Device device)
public final boolean isMobile()
public final boolean isTablet()
public final UserAgent.Browser getBrowser()
public final boolean isIE678()
public final boolean isIE9Down()
public final boolean isIE9Up()
public final boolean isIE10Up()
public final boolean isIE11Up()
public final boolean isIE()
public final boolean isFirefox3()
public final boolean isFirefox4Up()
public final boolean isFirefox()
public final boolean isOpera()
public final boolean isWebKit()
public final boolean isSafari()
public final boolean isChrome()
public final boolean isUCWeb()
@Deprecated public static final UserAgent set(String userAgent)
userAgent - the useragent StringUserAgent instancepublic static void main(String[] args)
Copyright © 2017. All Rights Reserved.