Methods

This section describes the methods exposed by the DevExpress.devices namespace.

current()

Returns information about the current device.

Return Value: Device
An object containing information about the current device.

The device information provided by this function may differ from the actual device on which the application is running, if an emulated device is specified for the application (see DevExpress.devices.current(deviceName)). The actual information about the device is available via the DevExpress.devices.real() function.

Show Example:
jQuery

current(deviceName)

Overrides the actual device information to force the application to operate as if it were running on the specified device.

Parameters:
deviceName: String|Device
The required device name or an object specifying the platform information.

The string values accepted by the input parameter are as follows: "iPhone", "iPhone5", "iPad", "iPadMini", "androidPhone", "androidTablet", "win8", "win8Phone", "msSurface", "tizen" and "desktop". The method can also take on an object containing more detailed information on the current platform.

Show Example:
jQuery

real()

Returns real information about the current device, regardless of the value passed to the devices.current(deviceName) method.

Return Value: Device
An object containing information about the current device.

Show Example:
jQuery