Documentation Center

device aspect

The properties of the device aspect. The combination of the model, version, vendor and variant properties uniquely identifies the device.

Property nameTypeDescription
displayHeightIntegerThe total number of addressable pixels in the vertical direction of a rectangular display when held in its default orientation
displayWidthIntegerThe total number of addressable pixels in the horizontal direction of a rectangular display when held in its default orientation
inputDevicesSet<String>Input devices available to the user: one or more of clickWheel, keypad, stylus, touchScreen and trackball
mobileBooleanWhether the device is a handheld mobile device
modelStringThe model name of the device
pixelDensityIntegerThe pixel density of the device's screen in PPI
pixelRatioFloatThe ratio between physical and device-independent pixels on the device. For example, for a Retina iPhone this value is 2.
robotBooleanWhether the device is a robot
tabletBooleanWhether the device is a tablet device
variantStringThe variant of the device (rarely used)
vendorStringThe vendor name of the device
versionVersionThe version of the device