mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
feat(plugin): proxy plugin properties
Rename RequiresPlugin decorator to CordovaProperty and replace getter so we can forward property access to the underlying plugin property.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {Plugin, Cordova, RequiresPlugin} from './plugin';
|
||||
import {Plugin, Cordova, CordovaProperty} from './plugin';
|
||||
|
||||
declare var window;
|
||||
|
||||
@@ -102,8 +102,8 @@ export class StatusBar {
|
||||
/**
|
||||
* Whether the StatusBar is currently visible or not.
|
||||
*/
|
||||
@RequiresPlugin
|
||||
static isVisible() {
|
||||
@CordovaProperty
|
||||
static get isVisible() {
|
||||
return window.StatusBar.isVisible;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user