awesome-cordova-plugins/src/plugins/splashscreen.ts
2016-04-29 23:56:49 -04:00

40 lines
767 B
TypeScript

import {Plugin, Cordova} from './plugin';
/**
* @name Splashscreen
* @description This plugin displays and hides a splash screen during application launch. The methods below allows showing and hiding the splashscreen after the app has loaded.
* @usage
* ```ts
* import {Splashscreen} from 'ionic-native';
*
*
*
* Splashscreen.show();
*
* Splashscreen.hide();
* ```
*/
@Plugin({
plugin: 'cordova-plugin-splashscreen',
pluginRef: 'navigator.splashscreen',
repo: 'https://github.com/apache/cordova-plugin-splashscreen'
})
export class Splashscreen {
/**
* Shows the splashscreen
*/
@Cordova({
sync: true
})
static show(): void {}
/**
* Hides the splashscreen
*/
@Cordova({
sync: true
})
static hide(): void {}
}