UNPKG

1.91 kBJavaScriptView Raw
1"use strict";
2var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3 var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4 if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5 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;
6 return c > 3 && r && Object.defineProperty(target, key, r), r;
7};
8var plugin_1 = require('./plugin');
9/**
10 * @name Splashscreen
11 * @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.
12 * @usage
13 * ```typescript
14 * import { Splashscreen } from 'ionic-native';
15 *
16 *
17 * Splashscreen.show();
18 *
19 * Splashscreen.hide();
20 * ```
21 */
22var Splashscreen = (function () {
23 function Splashscreen() {
24 }
25 /**
26 * Shows the splashscreen
27 */
28 Splashscreen.show = function () { };
29 /**
30 * Hides the splashscreen
31 */
32 Splashscreen.hide = function () { };
33 __decorate([
34 plugin_1.Cordova({
35 sync: true
36 })
37 ], Splashscreen, "show", null);
38 __decorate([
39 plugin_1.Cordova({
40 sync: true
41 })
42 ], Splashscreen, "hide", null);
43 Splashscreen = __decorate([
44 plugin_1.Plugin({
45 pluginName: 'Splashscreen',
46 plugin: 'cordova-plugin-splashscreen',
47 pluginRef: 'navigator.splashscreen',
48 repo: 'https://github.com/apache/cordova-plugin-splashscreen'
49 })
50 ], Splashscreen);
51 return Splashscreen;
52}());
53exports.Splashscreen = Splashscreen;
54//# sourceMappingURL=splashscreen.js.map
\No newline at end of file