/** * DevExtreme (core/devices.d.ts) * Version: 21.1.7 * Build date: Thu Aug 07 2025 * * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ /** * @public * @docid * @section commonObjectStructures * @namespace DevExpress * @export default */ export type Device = { /** * @docid * @public */ android?: boolean; /** * @docid * @public */ deviceType?: 'phone' | 'tablet' | 'desktop'; /** * @docid * @public */ generic?: boolean; /** * @docid * @public */ grade?: 'A' | 'B' | 'C'; /** * @docid * @public */ ios?: boolean; /** * @docid * @public */ phone?: boolean; /** * @docid * @public */ platform?: 'android' | 'ios' | 'generic'; /** * @docid * @public */ tablet?: boolean; /** * @docid * @public */ version?: Array; }; /** * @docid * @publicName devices * @section Utils * @namespace DevExpress * @public */ declare class DevicesObject { constructor(options: { window?: Window }); /** * @docid * @publicName current() * @public */ current(): Device; /** * @docid * @publicName current(deviceName) * @public */ current(deviceName: string | Device): void; /** * @docid * @publicName off(eventName) * @return this * @public */ off(eventName: string): this; /** * @docid * @publicName off(eventName, eventHandler) * @return this * @public */ off(eventName: string, eventHandler: Function): this; /** * @docid * @publicName on(eventName, eventHandler) * @return this * @public */ on(eventName: string, eventHandler: Function): this; /** * @docid * @publicName on(events) * @param1 events:object * @return this * @public */ on(events: any): this; /** * @docid * @publicName orientation() * @public */ orientation(): string; /** * @docid * @publicName real() * @public */ real(): Device; isSimulator(): boolean; } /** * @const devices * @namespace DevExpress * @hidden */ declare const devices: DevicesObject; export default devices;