Skip to content

Commit

Permalink
feat(plugin): add splashscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed Mar 13, 2016
1 parent d228178 commit 0f3c188
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/plugins/splashscreen.ts
Original file line number Diff line number Diff line change
@@ -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 {}

}

0 comments on commit 0f3c188

Please sign in to comment.