mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
feat(plugin): add splashscreen
This commit is contained in:
parent
d2281782ed
commit
0f3c1886d3
36
src/plugins/splashscreen.ts
Normal file
36
src/plugins/splashscreen.ts
Normal file
@ -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 {}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user