diff --git a/src/plugins/splashscreen.ts b/src/plugins/splashscreen.ts new file mode 100644 index 00000000..c7999781 --- /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