public interface DetectionService
| Modifier and Type | Interface and Description |
|---|---|
static class |
DetectionService.DesktopNegatives |
static class |
DetectionService.DesktopStrings |
static class |
DetectionService.IPhoneStrings |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBrand(java.lang.String userAgent)
Gets the brand.
|
java.lang.String |
getMobileScreenSize(java.lang.String userAgent)
Gets the mobile screen size.
|
java.lang.String |
getModel(java.lang.String userAgent)
Gets the model.
|
boolean |
isBot(java.lang.String userAgent)
Checks if is bot.
|
boolean |
isDesktop(java.lang.String userAgent)
Checks if is desktop.
|
boolean |
isiPhoneCapable(java.lang.String userAgent,
java.util.List<java.lang.String> accepts)
Checks if is i phone capable.
|
boolean |
isMobileDevice(java.lang.String userAgent)
Checks if is mobile device.
|
boolean |
isWmlCapable(java.lang.String useragent,
java.util.List<java.lang.String> accepts)
Checks if is wml capable.
|
boolean |
isXhtmlCapable(java.lang.String userAgent,
java.util.List<java.lang.String> accepts)
Checks if is xhtml capable.
|
boolean isMobileDevice(java.lang.String userAgent)
userAgent - the user agentboolean isDesktop(java.lang.String userAgent)
userAgent - the user agentboolean isBot(java.lang.String userAgent)
userAgent - the user agentboolean isWmlCapable(java.lang.String useragent,
java.util.List<java.lang.String> accepts)
useragent - the useragentaccepts - the acceptsboolean isXhtmlCapable(java.lang.String userAgent,
java.util.List<java.lang.String> accepts)
userAgent - the user agentaccepts - the acceptsboolean isiPhoneCapable(java.lang.String userAgent,
java.util.List<java.lang.String> accepts)
userAgent - the user agentaccepts - the acceptsjava.lang.String getMobileScreenSize(java.lang.String userAgent)
userAgent - the user agentjava.lang.String getBrand(java.lang.String userAgent)
userAgent - the user agentjava.lang.String getModel(java.lang.String userAgent)
userAgent - the user agentCopyright © 2018 SAP SE. All Rights Reserved.