UNPKG

1.24 kBTypeScriptView Raw
1import { IonicNativePlugin } from '@ionic-native/core';
2/**
3 * @name Device
4 * @premier device
5 * @description
6 * Access information about the underlying device and platform.
7 *
8 * @usage
9 * ```typescript
10 * import { Device } from '@ionic-native/device/ngx';
11 *
12 * constructor(private device: Device) { }
13 *
14 * ...
15 *
16 * console.log('Device UUID is: ' + this.device.uuid);
17 * ```
18 */
19export declare class DeviceOriginal extends IonicNativePlugin {
20 /** Get the version of Cordova running on the device. */
21 cordova: string;
22 /**
23 * The device.model returns the name of the device's model or product. The value is set
24 * by the device manufacturer and may be different across versions of the same product.
25 */
26 model: string;
27 /** Get the device's operating system name. */
28 platform: string;
29 /** Get the device's Universally Unique Identifier (UUID). */
30 uuid: string;
31 /** Get the operating system version. */
32 version: string;
33 /** Get the device's manufacturer. */
34 manufacturer: string;
35 /** Whether the device is running on a simulator. */
36 isVirtual: boolean;
37 /** Get the device hardware serial number. */
38 serial: string;
39}
40
41export declare const Device: DeviceOriginal;
\No newline at end of file