2016-04-30 11:56:49 +08:00
|
|
|
import {Plugin, Cordova} from './plugin';
|
2016-03-14 01:18:00 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @name Splashscreen
|
2016-03-14 01:18:54 +08:00
|
|
|
* @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.
|
2016-03-14 01:18:00 +08:00
|
|
|
* @usage
|
|
|
|
* ```ts
|
2016-03-25 01:00:18 +08:00
|
|
|
* import {Splashscreen} from 'ionic-native';
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
2016-03-14 01:18:00 +08:00
|
|
|
* 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
|
|
|
|
})
|
2016-04-30 11:56:49 +08:00
|
|
|
static show(): void {}
|
2016-03-14 01:18:00 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Hides the splashscreen
|
|
|
|
*/
|
|
|
|
@Cordova({
|
|
|
|
sync: true
|
|
|
|
})
|
2016-04-30 11:56:49 +08:00
|
|
|
static hide(): void {}
|
2016-03-14 01:18:00 +08:00
|
|
|
|
|
|
|
}
|