A newer version of this page is available. Switch to the current version.

jQuery/JS Common - Utils - devices

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

import DevicesObject from "devextreme/core/devices"

Methods

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

Name Description
current()

Gets information on 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 a single event.

off(eventName, eventHandler)

Detaches a particular event handler from a single event.

on(eventName, eventHandler)

Subscribes to an event.

on(events)

Subscribes to events.

orientation()

Returns the current device orientation.

real()

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