device

The device object defines the device on which the application is running.

Type: Object

This object is returned by the DevExpress.devices.current() and DevExpress.devices.real() methods to provide information on the device on which the application is currently running. Use the fields of this object to get the required information on the device.

You can see how an application runs on a different device. For this purpose, use the DevExpress.devices.current() function, passing the required device object as a parameter.

The information about the device on which the application is currently running is used to provide the appropriate look and feel for that particular application. The most appropriate styles for the current device will be applied.

android

Indicates whether or not the device platform is Android.

Type: Boolean

deviceType

Specifies the type of the device on which the application is running.

Type: String
Accepted Values: 'phone'|'tablet'

The device type can influence how widgets are displayed and how they behave in the application.

generic

Indicates whether or not the device platform is generic, which means that the application will look and behave according to a "generic" theme.

Type: Boolean

ios

Indicates whether or not the device platform is iOS.

Type: Boolean

phone

Indicates whether or not the device type is 'phone'.

Type: Boolean

platform

Specifies the platform of the device on which the application is running.

Type: String
Accepted Values: 'android'|'ios'|'tizen'|'win8'|'generic'

Depending on the device platform, a corresponding theme is applied to the application. The device platform is set to 'generic' when none of the platforms ('Android', 'ios', 'tizen' or 'win8') are identified. In this instance, the 'generic' theme is applied. You can also set the 'generic' platform manually to provide a unique look and feel for the application on any device. For this purpose, use the DevExpress.devices.current() function, passing the device object with the platform field set to 'generic' as a parameter.

tablet

Indicates whether or not the device type is 'tablet'.

Type: Boolean

tizen

Indicates whether or not the device platform is Tizen.

Type: Boolean

version

Specifies an array with the major and minor versions of the device platform.

Type: Array

The version of the device platform is important for providing a native application appearance according to the guidelines provided by each platform version.

win8

Indicates whether or not the device platform is Windows8.

Type: Boolean