123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. var __extends = (this && this.__extends) || (function () {
  2. var extendStatics = Object.setPrototypeOf ||
  3. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  4. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  5. return function (d, b) {
  6. extendStatics(d, b);
  7. function __() { this.constructor = d; }
  8. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  9. };
  10. })();
  11. var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  12. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  13. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  14. 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;
  15. return c > 3 && r && Object.defineProperty(target, key, r), r;
  16. };
  17. var __metadata = (this && this.__metadata) || function (k, v) {
  18. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
  19. };
  20. import { Injectable } from '@angular/core';
  21. import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
  22. /**
  23. * @name Splash Screen
  24. * @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.
  25. * @usage
  26. * ```typescript
  27. * import { SplashScreen } from '@ionic-native/splash-screen';
  28. *
  29. * constructor(private splashScreen: SplashScreen) { }
  30. *
  31. * ...
  32. *
  33. * this.splashScreen.show();
  34. *
  35. * this.splashScreen.hide();
  36. * ```
  37. */
  38. var SplashScreen = (function (_super) {
  39. __extends(SplashScreen, _super);
  40. function SplashScreen() {
  41. return _super !== null && _super.apply(this, arguments) || this;
  42. }
  43. /**
  44. * Shows the splashscreen
  45. */
  46. SplashScreen.prototype.show = function () { };
  47. /**
  48. * Hides the splashscreen
  49. */
  50. SplashScreen.prototype.hide = function () { };
  51. SplashScreen.decorators = [
  52. { type: Injectable },
  53. ];
  54. /** @nocollapse */
  55. SplashScreen.ctorParameters = function () { return []; };
  56. __decorate([
  57. Cordova({
  58. sync: true
  59. }),
  60. __metadata("design:type", Function),
  61. __metadata("design:paramtypes", []),
  62. __metadata("design:returntype", void 0)
  63. ], SplashScreen.prototype, "show", null);
  64. __decorate([
  65. Cordova({
  66. sync: true
  67. }),
  68. __metadata("design:type", Function),
  69. __metadata("design:paramtypes", []),
  70. __metadata("design:returntype", void 0)
  71. ], SplashScreen.prototype, "hide", null);
  72. SplashScreen = __decorate([
  73. Plugin({
  74. pluginName: 'SplashScreen',
  75. plugin: 'cordova-plugin-splashscreen',
  76. pluginRef: 'navigator.splashscreen',
  77. repo: 'https://github.com/apache/cordova-plugin-splashscreen',
  78. platforms: ['Amazon Fire OS', 'Android', 'iOS', 'Windows']
  79. })
  80. ], SplashScreen);
  81. return SplashScreen;
  82. }(IonicNativePlugin));
  83. export { SplashScreen };
  84. //# sourceMappingURL=index.js.map