From 0f3c1886d33359f5085162c76721a583fe7d404c Mon Sep 17 00:00:00 2001 From: Ibrahim Hadeed Date: Sun, 13 Mar 2016 13:18:00 -0400 Subject: [PATCH] feat(plugin): add splashscreen --- src/plugins/splashscreen.ts | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/plugins/splashscreen.ts diff --git a/src/plugins/splashscreen.ts b/src/plugins/splashscreen.ts new file mode 100644 index 000000000..c7999781c --- /dev/null +++ b/src/plugins/splashscreen.ts @@ -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 {} + +} \ No newline at end of file