ionic-native
Version:
Native plugin wrappers for Cordova and Ionic with TypeScript, ES6+, Promise and Observable support
54 lines • 1.91 kB
JavaScript
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var plugin_1 = require('./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
* ```typescript
* import { Splashscreen } from 'ionic-native';
*
*
* Splashscreen.show();
*
* Splashscreen.hide();
* ```
*/
var Splashscreen = (function () {
function Splashscreen() {
}
/**
* Shows the splashscreen
*/
Splashscreen.show = function () { };
/**
* Hides the splashscreen
*/
Splashscreen.hide = function () { };
__decorate([
plugin_1.Cordova({
sync: true
})
], Splashscreen, "show", null);
__decorate([
plugin_1.Cordova({
sync: true
})
], Splashscreen, "hide", null);
Splashscreen = __decorate([
plugin_1.Plugin({
pluginName: 'Splashscreen',
plugin: 'cordova-plugin-splashscreen',
pluginRef: 'navigator.splashscreen',
repo: 'https://github.com/apache/cordova-plugin-splashscreen'
})
], Splashscreen);
return Splashscreen;
}());
exports.Splashscreen = Splashscreen;
//# sourceMappingURL=splashscreen.js.map
;