Device Object

The device property specifies client device characteristics.

Device property specifics apply to a given request. The value of this property will be null if the contract associated with the request does not have entitlements for Edge Device Characteristics.

brandname

Brand name of the device. This is a read-only string value.

// User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0 
request.device.brandName;
// => "Firefox"

modelName

Model name or number of the device. This is a read-only string value.

// User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0 
request.device.modelName;
// => "68"

marketingName

Additional name by which the device may be known. This is a read-only string value.

// User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0 
request.device.marketingName; 
// => "Firefox 68"

isWireless

Indicates if the device is a wireless device. This is a read-only boolean value.

// User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0 
request.device.isWireless; 
// => false

isTablet

Indicates if the device is a tablet. This is a read-only boolean value.

// User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0
request.device.isTablet;
// => false

isMobile

Indicates if the device is a mobile device. This is a read-only boolean value.

// User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0 
request.device.isMobile;
// => false

os

The device operating system name. This is a read-only string value.

// User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0
request.device.os;
// => "Mac OS X"

osVersion

The device operating system version. This is a read-only string value.

// User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0
request.device.osVersion;
// => "10.14"

mobileBrowser

The mobile browser name of the device. This is a read-only string value.

// User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0
request.device.mobileBrowser;
// => "Firefox"

mobileBrowserVersion

The mobile browser version of the device. This is a read-only string value.

// User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0
request.device.mobileBrowserVersion;
// => "68"

resolutionWidth

The screen resolution width, in pixels of the device. This is a read-only integer value.

// User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0
request.device.resolutionWidth;
// => 1280

resolutionHeight

The screen resolution height, in pixels of the device. This is a read-only integer value.

// User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0
request.device.resolutionHeight;
// => 800

physicalScreenHeight

The physical screen height, in millimeters of the device. This is a read-only integer value.

// User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0
request.device.physicalScreenHeight;
// => 175

physicalScreenWidth

The physical screen width, in millimeters of the device. This is a read-only integer value.

// User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0
request.device.physicalScreenWidth;
// => 280

hasCookieSupport

Indicates if the device browser supports cookies. This is a read-only boolean value.

// User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0
request.device.hasCookieSupport;
// => true

hasAjaxSupport

Indicates if the device browser supports AJAX in JavaScript. This is a read-only boolean value.

// User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0
request.device.hasAjaxSupport;
// => true

hasFlashSupport

Indicates if the device browser supports Flash. This is a read-only boolean value.

// User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0
request.device.hasFlashSupport;
// => true

acceptsThirdPartyCookie

Indicates if the device supports cookies from a pixel in a page in a different domain. Although the device supports this feature it may be disabled by the user of the device. This is a read-only boolean value.

// User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0
request.device.acceptsThirdPartyCookies;
// => true

xhtmlSupportLevel

Indicates the device XHTML support level. This is a read-only integer value.

// User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0
request.device.xhtmlSupportLevel;
// => 4