ionic-native
Version:
Native plugin wrappers for Cordova and Ionic with TypeScript, ES6+, Promise and Observable support
41 lines (40 loc) • 1.1 kB
TypeScript
/**
* @name App Version
* @description
* Reads the version of your app from the target build settings.
*
* 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).
*
* @usage
* ```typescript
* import { AppVersion } from 'ionic-native';
*
*
* AppVersion.getAppName();
* AppVersion.getPackageName();
* AppVersion.getVersionCode();
* AppVersion.getVersionNumber();
* ```
*/
export declare class AppVersion {
/**
* Returns the name of the app
* @returns {Promise<any>}
*/
static getAppName(): Promise<any>;
/**
* Returns the package name of the app
* @returns {Promise<any>}
*/
static getPackageName(): Promise<any>;
/**
* Returns the build identifier of the app
* @returns {Promise<any>}
*/
static getVersionCode(): Promise<any>;
/**
* Returns the version of the app
* @returns {Promise<any>}
*/
static getVersionNumber(): Promise<any>;
}