Private
clientPrivate
componentPrivate
devicePrivate
hasPrivate
hasPrivate
httpPrivate
internalPrivate
lookupPrivate
propertiesPrivate
propertyStatic
Private
ACCEPT_Static
API_Static
Private
XMSG_Static
Private
XMSG_Static
Private
XMSG_Static
Private
XMSG_Private
ExtractPrivate
appsPrivate
checkPrivate
detectPrivate
extractPrivate
getPrivate
getPrivate
getGet the properties for the provided identifier. The identifier may be a User-Agent string, Client Hints model or if enabled in the data file an app "Make Model" string.
A collection of properties (Property objects) wrapped in a Properties object
Get the properties for a request. The DeviceApi gets all the request HTTP headers and will precisely detect the device and find property values for all usable headers.
A set of properties (Property objects) wrapped in a Properties object
Private
getPrivate
normalisePrivate
parsePrivate
webPrivate
webStatic
getGenerated using TypeDoc
The DeviceAtlas device detection API provides a way to detect devices based on the HTTP headers. Using these headers, the API returns device properties such as screen width, screen height, is mobile, vendor, model etc. If you want to use the DeviceAtlas API in a servlet container then it is strongly recommended to use DeviceApiWeb instead of this library.
The DeviceApiWeb is preferred when you want to perform real-time detection of a user's device in a servlet container.
The DeviceApi is preferred when you want to perform device outside of a servlet container or from an off-line User-Agent list or header set.
getProperties(Map<String, String> headers, String clientSide).
To get the most accurate results: 1- Pass all of the HTTP headers. 2- Use the DeviceAtlas Client-side component and pass the result.
When you have limited data you can also use these alternatives:
getProperties(Map<String, String> headers).
getProperties(String userAgent, String clientSide).
getProperties(String userAgent).
Example usage:
Copyright (c) DeviceAtlas Limited 2021. All Rights Reserved.
Author
DeviceAtlas Limited