devices

An object containing methods used to get or override current device information.

Type: Object

Device information is represented by the device object, which contains the following fields.

  • phone - a Boolean value indicating whether or not the device is a mobile phone
  • tablet - a Boolean value indicating whether or not the device is a tablet PC
  • android - a Boolean value indicating whether or not the device platform is Android
  • ios - a Boolean value indicating whether or not the device platform is iOS
  • win8 - a Boolean value indicating whether or not the device platform is Windows 8
  • tizen - a Boolean value indicating whether or not the device platform is Tizen
  • platform - a string value specifying the name of the device platform

If you override the current device information using the current(deviceName) method, the application operates as if it were running on the specified device.

Use the following code to get device information.

JavaScript
var deviceInfo = DevExpress.devices.current();

Methods

This section describes the members used to manipulate the object.