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 |
|---|---|
String |
getBrand(String userAgent)
Gets the brand.
|
String |
getMobileScreenSize(String userAgent)
Gets the mobile screen size.
|
String |
getModel(String userAgent)
Gets the model.
|
boolean |
isBot(String userAgent)
Checks if is bot.
|
boolean |
isDesktop(String userAgent)
Checks if is desktop.
|
boolean |
isiPhoneCapable(String userAgent,
List<String> accepts)
Checks if is i phone capable.
|
boolean |
isMobileDevice(String userAgent)
Checks if is mobile device.
|
boolean |
isWmlCapable(String useragent,
List<String> accepts)
Checks if is wml capable.
|
boolean |
isXhtmlCapable(String userAgent,
List<String> accepts)
Checks if is xhtml capable.
|
boolean isMobileDevice(String userAgent)
userAgent - the user agentboolean isDesktop(String userAgent)
userAgent - the user agentboolean isBot(String userAgent)
userAgent - the user agentboolean isWmlCapable(String useragent, List<String> accepts)
useragent - the useragentaccepts - the acceptsboolean isXhtmlCapable(String userAgent, List<String> accepts)
userAgent - the user agentaccepts - the acceptsboolean isiPhoneCapable(String userAgent, List<String> accepts)
userAgent - the user agentaccepts - the acceptsString getMobileScreenSize(String userAgent)
userAgent - the user agentString getBrand(String userAgent)
userAgent - the user agentCopyright © 2017 SAP SE. All Rights Reserved.