1 | /**
|
2 | * @name App Version
|
3 | * @description
|
4 | * Reads the version of your app from the target build settings.
|
5 | *
|
6 | * Requires Cordova plugin: `cordova-plugin-app-version`. For more info, please see the [Cordova App Version docs](https://github.com/whiteoctober/cordova-plugin-app-version).
|
7 | *
|
8 | * @usage
|
9 | * ```typescript
|
10 | * import { AppVersion } from 'ionic-native';
|
11 | *
|
12 | *
|
13 | * AppVersion.getAppName();
|
14 | * AppVersion.getPackageName();
|
15 | * AppVersion.getVersionCode();
|
16 | * AppVersion.getVersionNumber();
|
17 | * ```
|
18 | */
|
19 | export declare class AppVersion {
|
20 | /**
|
21 | * Returns the name of the app
|
22 | * @returns {Promise<any>}
|
23 | */
|
24 | static getAppName(): Promise<any>;
|
25 | /**
|
26 | * Returns the package name of the app
|
27 | * @returns {Promise<any>}
|
28 | */
|
29 | static getPackageName(): Promise<any>;
|
30 | /**
|
31 | * Returns the build identifier of the app
|
32 | * @returns {Promise<any>}
|
33 | */
|
34 | static getVersionCode(): Promise<any>;
|
35 | /**
|
36 | * Returns the version of the app
|
37 | * @returns {Promise<any>}
|
38 | */
|
39 | static getVersionNumber(): Promise<any>;
|
40 | }
|