UNPKG

584 BTypeScriptView Raw
1/**
2 * @name UniqueDeviceID
3 * @description
4 * This plugin produces a unique, cross-install, app-specific device id.
5 *
6 * @usage
7 * ```
8 * import { UniqueDeviceID } from 'ionic-native';
9 *
10 * UniqueDeviceID.get()
11 * .then((uuid: any) => console.log(uuid))
12 * .catch((error: any) => console.log(error));
13 *
14 * ```
15 */
16export declare class UniqueDeviceID {
17 /**
18 * Gets a unique, cross-install, app-specific device id.
19 * @return {Promise<string>} Returns a promise that resolves when something happens
20 */
21 static get(): Promise<string>;
22}