devices

An object that serves as a namespace for the methods and events specifying information on the current device.

Included in: dx.mobile.js, dx.web.js, dx.viz.js, dx.viz-web.js, dx.all.js

Methods

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

Name Description
current()

Returns information about the current device.

current(deviceName)

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

off(eventName)

Detaches all event handlers from the specified event.

off(eventName, eventHandler)

Detaches a particular event handler from the specified event.

on(eventName, eventHandler)

Subscribes to a specified event.

on(events)

Subscribes to the specified events.

orientation()

Returns the current device orientation.

real()

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

Events

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

Name Description
orientationChanged

Fires after device orientation is changed.