feat(plugin): add splashscreen

This commit is contained in:
Ibrahim Hadeed 2016-03-13 13:18:00 -04:00
parent d2281782ed
commit 0f3c1886d3

View File

@ -0,0 +1,36 @@
import {Plugin, Cordova} from './plugin'
/**
* @name Splashscreen
* @description This plugin displays and hides a splash screen during application launch.
* @usage
* ```ts
* 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 {}
}