mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 18:49:43 +08:00
refactor(StatusBar):
This commit is contained in:
parent
f461a0f9bb
commit
70b30a390f
@ -1,4 +1,5 @@
|
|||||||
import {Plugin, Cordova, CordovaProperty} from './plugin';
|
import { Cordova, CordovaProperty, Plugin } from './plugin';
|
||||||
|
|
||||||
|
|
||||||
declare var window;
|
declare var window;
|
||||||
|
|
||||||
@ -37,7 +38,7 @@ export class StatusBar {
|
|||||||
@Cordova({
|
@Cordova({
|
||||||
sync: true
|
sync: true
|
||||||
})
|
})
|
||||||
static overlaysWebView(doesOverlay: boolean) {};
|
static overlaysWebView(doesOverlay: boolean) { };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use the default statusbar (dark text, for light backgrounds).
|
* Use the default statusbar (dark text, for light backgrounds).
|
||||||
@ -45,7 +46,7 @@ export class StatusBar {
|
|||||||
@Cordova({
|
@Cordova({
|
||||||
sync: true
|
sync: true
|
||||||
})
|
})
|
||||||
static styleDefault() {};
|
static styleDefault() { };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use the lightContent statusbar (light text, for dark backgrounds).
|
* Use the lightContent statusbar (light text, for dark backgrounds).
|
||||||
@ -53,7 +54,7 @@ export class StatusBar {
|
|||||||
@Cordova({
|
@Cordova({
|
||||||
sync: true
|
sync: true
|
||||||
})
|
})
|
||||||
static styleLightContent() {};
|
static styleLightContent() { };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use the blackTranslucent statusbar (light text, for dark backgrounds).
|
* Use the blackTranslucent statusbar (light text, for dark backgrounds).
|
||||||
@ -61,7 +62,7 @@ export class StatusBar {
|
|||||||
@Cordova({
|
@Cordova({
|
||||||
sync: true
|
sync: true
|
||||||
})
|
})
|
||||||
static styleBlackTranslucent() {};
|
static styleBlackTranslucent() { };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use the blackOpaque statusbar (light text, for dark backgrounds).
|
* Use the blackOpaque statusbar (light text, for dark backgrounds).
|
||||||
@ -69,7 +70,7 @@ export class StatusBar {
|
|||||||
@Cordova({
|
@Cordova({
|
||||||
sync: true
|
sync: true
|
||||||
})
|
})
|
||||||
static styleBlackOpaque() {};
|
static styleBlackOpaque() { };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the status bar to a specific named color. Valid options:
|
* Set the status bar to a specific named color. Valid options:
|
||||||
@ -82,7 +83,7 @@ export class StatusBar {
|
|||||||
@Cordova({
|
@Cordova({
|
||||||
sync: true
|
sync: true
|
||||||
})
|
})
|
||||||
static backgroundColorByName(colorName: string) {};
|
static backgroundColorByName(colorName: string) { };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the status bar to a specific hex color (CSS shorthand supported!).
|
* Set the status bar to a specific hex color (CSS shorthand supported!).
|
||||||
@ -94,7 +95,7 @@ export class StatusBar {
|
|||||||
@Cordova({
|
@Cordova({
|
||||||
sync: true
|
sync: true
|
||||||
})
|
})
|
||||||
static backgroundColorByHexString(hexString: string) {};
|
static backgroundColorByHexString(hexString: string) { };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hide the StatusBar
|
* Hide the StatusBar
|
||||||
@ -102,7 +103,7 @@ export class StatusBar {
|
|||||||
@Cordova({
|
@Cordova({
|
||||||
sync: true
|
sync: true
|
||||||
})
|
})
|
||||||
static hide() {};
|
static hide() { };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show the StatusBar
|
* Show the StatusBar
|
||||||
@ -110,11 +111,12 @@ export class StatusBar {
|
|||||||
@Cordova({
|
@Cordova({
|
||||||
sync: true
|
sync: true
|
||||||
})
|
})
|
||||||
static show() {};
|
static show() { };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether the StatusBar is currently visible or not.
|
* Whether the StatusBar is currently visible or not.
|
||||||
*/
|
*/
|
||||||
@CordovaProperty
|
@CordovaProperty
|
||||||
static get isVisible() { return window.StatusBar.isVisible; }
|
static get isVisible() { return window.StatusBar.isVisible; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user