public enum Browser extends Enum<Browser> implements UserAgentInfo
NAME_UNKNOWN, OTHER_VERSION| 限定符和类型 | 方法和说明 |
|---|---|
String |
getName()
获取信息名称
|
String |
getVersion(String userAgentString)
获取浏览器版本
|
boolean |
isMobile()
是否移动浏览器
|
static Browser |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Browser[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfisUnknownpublic static final Browser UNKNOWN
public static final Browser WXWORK
public static final Browser MICRO_MESSENGER
public static final Browser MINI_PROGRAM
public static final Browser QQ_BROWSER
public static final Browser DING_TALK
public static final Browser ALIPAY
public static final Browser TAOBAO
public static final Browser UC_BROWSER
public static final Browser QUARK
public static final Browser LENOVO
public static final Browser MS_EDGE
public static final Browser CHROME
public static final Browser FIREFOX
public static final Browser IE_MOBILE
public static final Browser ANDROID_BROWSER
public static final Browser SAFARI
public static final Browser OPERA
public static final Browser KONQUEROR
public static final Browser PS3r
public static final Browser PSP
public static final Browser LOTUS
public static final Browser THUNDERBIRD
public static final Browser NETSCAPE
public static final Browser SEAMONKEY
public static final Browser OUTLOOK
public static final Browser EVOLUTION
public static final Browser MSIE
public static final Browser MSIE11
public static final Browser GABBLE
public static final Browser YAMMER_DESKTOP
public static final Browser YAMMER_MOBILE
public static final Browser APACHE_HTTP_CLIENT
public static final Browser BLACK_BERRY
public static Browser[] values()
for (Browser c : Browser.values()) System.out.println(c);
public static Browser valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getVersion(String userAgentString)
userAgentString - User-Agent字符串public boolean isMobile()
public String getName()
UserAgentInfogetName 在接口中 UserAgentInfoCopyright © 2022. All rights reserved.