Vue Common - utils - devices - Methods
This section describes the methods exposed by the DevExpress.devices namespace.
current()
Gets information on the current device.
Information on 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.
current(deviceName)
Overrides actual device information to force the application to operate as if it was running on a specified device.
The string values accepted by the input parameter are: "iPhone", "iPhone5", "iPhone6", "iPhone6plus", "iPad", "iPadMini", "androidPhone", "androidTablet", "genericPhone", "msSurface" and "desktop". The method can also take on an object containing more detailed information on the current platform.
off(eventName)
Detaches all event handlers from a single event.
The event's name.
The object for which this method is called.
off(eventName, eventHandler)
Detaches a particular event handler from a single event.
The object for which this method is called.
on(eventName, eventHandler)
Subscribes to an event.
The object for which this method is called.
on(events)
Subscribes to events.
Events with their handlers: { "eventName1": handler1, "eventName2": handler2, ...}
The object for which this method is called.
orientation()
Returns the current device orientation.
The current device orientation: "portrait" or "landscape".
real()
Returns real information about the current device regardless of the value passed to the devices.current(deviceName) method.
Information about the current device.
If you have technical questions, please create a support ticket in the DevExpress Support Center.