User agents can be parsed using the following static function:
Parses a User Agent string, and returns a \hexydec\agentzero\agentzero
object with the following properties:
Indicates whether the UA string is a human
or a robot
The category of device, possible values where the type
is human
are:
desktop
tablet
mobile
vr
tv
console
For robots the possible values are:
search
ads
crawler
feed
scraper
validator
monitor
The name of the device vendor.
The name of device.
The device model number.
The build number of the device software.
The vendor name of the processor manufacturer.
The system architecture, possible values are:
x86
itanium
arm
Sun
Spark V9
The number of bit, either 32
or 64
The name of the kernel, e.g. Linux
The platform name
The platform version number
The name of the rendering engine, possible values are:
Gecko
Blink
WebKit
Presto
Trident
Goanna
The version number of the rendering engine
The name of the browser, e.g. Firefox
or Chrome
The browser version number
The language code, e.g. en
or en-GB
, this will be normalised with lowercase, dash, uppercase format
The name of the app (Normalised), e.g. Facebook
or YaSearchBrowser
. For robots it will be the name of the robot, e.g. GoogleBot
The name of the app or robot as it is written in the User-Agent string
The version number of the application
The app framework used to build the app
The version of tthe app framework
The URL of the robot
If the browser session is routed through a proxy, it will be here, e.g. googleweblight
The width of the device screen.
The height of the device screen.
The density of the device screen.
The dots per inch of the device screen.
You can also access the following dynamic properties:
platformmajorversion
Returns the major version of the platformenginemajorversion
Returns the major version of the rendering enginebrowsermajorversion
Returns the major version of the browserappmajorversion
Returns the major version of the apphost
The hostname extracted from theurl
properties