UNPKG

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