public class UAgentInfo extends Object
Constructor and Description |
---|
UAgentInfo(String userAgent,
String httpAccept)
Initialize the userAgent and httpAccept variables.
|
Modifier and Type | Method and Description |
---|---|
boolean |
detectAndroid()
Detects *any* Android OS-based device: phone, tablet, and multi-media player.
|
boolean |
detectAndroidPhone()
Detects if the current device is a (small-ish) Android OS-based device
used for calling and/or multi-media (like a Samsung Galaxy Player).
|
boolean |
detectAndroidTablet()
Detects if the current device is a (self-reported) Android tablet.
|
boolean |
detectAndroidWebKit()
Detects if the current device is an Android OS-based device and
the browser is based on WebKit.
|
boolean |
detectArchos()
Detects if the current device is an Archos media player/Internet tablet.
|
boolean |
detectBlackBerry()
Detects if the current browser is any BlackBerry.
|
boolean |
detectBlackBerryHigh()
Detects if the current browser is a BlackBerry device AND
has a more capable recent browser.
|
boolean |
detectBlackBerryLow()
Detects if the current browser is a BlackBerry device AND
has an older, less capable browser.
|
boolean |
detectBlackBerryTablet()
Detects if the current browser is on a BlackBerry tablet device.
|
boolean |
detectBlackBerryTouch()
Detects if the current browser is a BlackBerry Touch
device, such as the Storm or Torch.
|
boolean |
detectBlackBerryWebKit()
Detects if the current browser is a BlackBerry device AND uses a
WebKit-based browser.
|
boolean |
detectBrewDevice()
Detects whether the device is a Brew-powered device.
|
boolean |
detectDangerHiptop()
Detects the Danger Hiptop device.
|
boolean |
detectGameConsole()
Detects if the current device is an Internet-capable game console.
|
boolean |
detectGarminNuvifone()
Detects if the current browser is a
Garmin Nuvifone.
|
boolean |
detectGoogleTV()
Detects if the current device is a GoogleTV.
|
boolean |
detectIos()
Detects *any* iOS device: iPhone, iPod Touch, iPad.
|
boolean |
detectIpad()
Detects if the current device is an iPad tablet.
|
boolean |
detectIphone()
Detects if the current device is an iPhone.
|
boolean |
detectIphoneOrIpod()
Detects if the current device is an iPhone or iPod Touch.
|
boolean |
detectIpod()
Detects if the current device is an iPod Touch.
|
boolean |
detectKindle()
Detects if the current device is an Amazon Kindle.
|
boolean |
detectMaemoTablet()
Detects if the current device is on one of the Maemo-based Nokia Internet Tablets.
|
boolean |
detectMidpCapable()
Detects if the current device supports MIDP, a mobile Java technology.
|
boolean |
detectMobileLong()
The longer and more thorough way to detect for a mobile device.
|
boolean |
detectMobileQuick()
Detects if the current device is a mobile device.
|
boolean |
detectNintendo()
Detects if the current device is a Nintendo game device.
|
boolean |
detectOperaAndroidPhone()
Detects Opera Mobile on an Android phone.
|
boolean |
detectOperaAndroidTablet()
Detects Opera Mobile on an Android tablet.
|
boolean |
detectOperaMobile()
Detects Opera Mobile or Opera Mini.
|
boolean |
detectPalmOS()
Detects if the current browser is on a PalmOS device.
|
boolean |
detectPalmWebOS()
Detects if the current browser is on a Palm device
running the new WebOS.
|
boolean |
detectS60OssBrowser()
Detects if the current browser is the Symbian S60 Open Source Browser.
|
boolean |
detectSmartphone()
Check to see whether the device is any device
in the 'smartphone' category.
|
boolean |
detectSonyMylo()
Detects if the current browser is a Sony Mylo device.
|
boolean |
detectSonyPlaystation()
Detects if the current device is a Sony Playstation.
|
boolean |
detectSymbianOS()
Detects if the current device is any Symbian OS-based device,
including older S60, Series 70, Series 80, Series 90, and UIQ,
or other browsers running on these devices.
|
boolean |
detectTierOtherPhones()
The quick way to detect for a tier of devices.
|
boolean |
detectTierRichCss()
The quick way to detect for a tier of devices.
|
boolean |
detectTierSmartPhone()
The quick way to detect for a tier of devices.
|
boolean |
detectTierTablet()
The quick way to detect for a tier of devices.
|
boolean |
detectWapWml()
Detects whether the device supports WAP or WML.
|
boolean |
detectWebkit()
Detects if the current browser is based on WebKit.
|
boolean |
detectWebOSTablet()
Detects if the current browser is on an HP tablet running WebOS.
|
boolean |
detectWindowsMobile()
Detects if the current browser is a Windows Mobile device.
|
boolean |
detectWindowsPhone7()
Detects if the current browser is a
Windows Phone 7 device.
|
boolean |
detectWindowsPhones() |
boolean |
detectXbox()
Detects if the current device is a Microsoft Xbox.
|
String |
getHttpAccept()
Return the lower case HTTP_ACCEPT.
|
boolean |
getIsIphone()
Return whether the device is an Iphone or iPod Touch.
|
boolean |
getIsTierGenericMobile()
Return whether the device is a generic, less-capable mobile device.
|
boolean |
getIsTierIphone()
Return whether the device is in the Iphone Tier.
|
boolean |
getIsTierRichCss()
Return whether the device is in the 'Rich CSS' tier of mobile devices.
|
boolean |
getIsTierTablet()
Return whether the device is in the Tablet Tier.
|
String |
getUserAgent()
Return the lower case HTTP_USER_AGENT.
|
void |
initDeviceScan()
Initialize Key Stored Values.
|
public boolean isIphone
public boolean isAndroidPhone
public boolean isTierTablet
public boolean isSmartPhone
public boolean isTierRichCss
public boolean isTierGenericMobile
public boolean isGameConsole
public boolean isBlackBerry
public static final String engineWebKit
public static final String deviceIphone
public static final String deviceIpod
public static final String deviceIpad
public static final String deviceMacPpc
public static final String deviceAndroid
public static final String deviceGoogleTV
public static final String deviceXoom
public static final String deviceHtcFlyer
public static final String deviceSymbian
public static final String deviceS60
public static final String deviceS70
public static final String deviceS80
public static final String deviceS90
public static final String deviceWinPhone7
public static final String deviceWinMob
public static final String deviceWindows
public static final String deviceIeMob
public static final String devicePpc
public static final String enginePie
public static final String deviceBB
public static final String vndRIM
public static final String deviceBBStorm
public static final String deviceBBBold
public static final String deviceBBTour
public static final String deviceBBCurve
public static final String deviceBBTorch
public static final String deviceBBPlaybook
public static final String devicePalm
public static final String deviceWebOS
public static final String deviceWebOShp
public static final String engineBlazer
public static final String engineXiino
public static final String deviceKindle
public static final String deviceNuvifone
public static final String vndwap
public static final String wml
public static final String deviceTablet
public static final String deviceBrew
public static final String deviceDanger
public static final String deviceHiptop
public static final String devicePlaystation
public static final String deviceNintendoDs
public static final String deviceNintendo
public static final String deviceWii
public static final String deviceXbox
public static final String deviceArchos
public static final String engineOpera
public static final String engineNetfront
public static final String engineUpBrowser
public static final String engineOpenWeb
public static final String deviceMidp
public static final String uplink
public static final String engineTelecaQ
public static final String devicePda
public static final String mini
public static final String mobile
public static final String mobi
public static final String maemo
public static final String linux
public static final String qtembedded
public static final String mylocom2
public static final String manuSonyEricsson
public static final String manuericsson
public static final String manuSamsung1
public static final String manuSony
public static final String manuHtc
public static final String svcDocomo
public static final String svcKddi
public static final String svcVodafone
public static final String disUpdate
public String getUserAgent()
public String getHttpAccept()
public boolean getIsIphone()
public boolean getIsTierTablet()
public boolean getIsTierIphone()
public boolean getIsTierRichCss()
public boolean getIsTierGenericMobile()
public void initDeviceScan()
public boolean detectIphone()
public boolean detectIpod()
public boolean detectIpad()
public boolean detectIphoneOrIpod()
public boolean detectIos()
public boolean detectAndroid()
public boolean detectAndroidPhone()
public boolean detectAndroidTablet()
public boolean detectAndroidWebKit()
public boolean detectGoogleTV()
public boolean detectWebkit()
public boolean detectS60OssBrowser()
public boolean detectSymbianOS()
public boolean detectWindowsPhone7()
public boolean detectWindowsMobile()
public boolean detectBlackBerry()
public boolean detectBlackBerryTablet()
public boolean detectBlackBerryWebKit()
public boolean detectBlackBerryTouch()
public boolean detectBlackBerryHigh()
public boolean detectBlackBerryLow()
public boolean detectPalmOS()
public boolean detectPalmWebOS()
public boolean detectWebOSTablet()
public boolean detectGarminNuvifone()
public boolean detectSmartphone()
public boolean detectBrewDevice()
public boolean detectDangerHiptop()
public boolean detectOperaMobile()
public boolean detectOperaAndroidPhone()
public boolean detectOperaAndroidTablet()
public boolean detectWapWml()
public boolean detectKindle()
public boolean detectMobileQuick()
public boolean detectSonyPlaystation()
public boolean detectNintendo()
public boolean detectXbox()
public boolean detectGameConsole()
public boolean detectMidpCapable()
public boolean detectMaemoTablet()
public boolean detectArchos()
public boolean detectSonyMylo()
public boolean detectMobileLong()
public boolean detectTierTablet()
public boolean detectTierSmartPhone()
public boolean detectTierRichCss()
public boolean detectWindowsPhones()
public boolean detectTierOtherPhones()
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries