refactor(StatusBar):

This commit is contained in:
Guille 2016-07-17 20:21:38 +02:00
parent f461a0f9bb
commit 70b30a390f

View File

@ -1,4 +1,5 @@
import {Plugin, Cordova, CordovaProperty} from './plugin';
import { Cordova, CordovaProperty, Plugin } from './plugin';
declare var window;
@ -37,7 +38,7 @@ export class StatusBar {
@Cordova({
sync: true
})
static overlaysWebView(doesOverlay: boolean) {};
static overlaysWebView(doesOverlay: boolean) { };
/**
* Use the default statusbar (dark text, for light backgrounds).
@ -45,7 +46,7 @@ export class StatusBar {
@Cordova({
sync: true
})
static styleDefault() {};
static styleDefault() { };
/**
* Use the lightContent statusbar (light text, for dark backgrounds).
@ -53,7 +54,7 @@ export class StatusBar {
@Cordova({
sync: true
})
static styleLightContent() {};
static styleLightContent() { };
/**
* Use the blackTranslucent statusbar (light text, for dark backgrounds).
@ -61,7 +62,7 @@ export class StatusBar {
@Cordova({
sync: true
})
static styleBlackTranslucent() {};
static styleBlackTranslucent() { };
/**
* Use the blackOpaque statusbar (light text, for dark backgrounds).
@ -69,7 +70,7 @@ export class StatusBar {
@Cordova({
sync: true
})
static styleBlackOpaque() {};
static styleBlackOpaque() { };
/**
* Set the status bar to a specific named color. Valid options:
@ -82,7 +83,7 @@ export class StatusBar {
@Cordova({
sync: true
})
static backgroundColorByName(colorName: string) {};
static backgroundColorByName(colorName: string) { };
/**
* Set the status bar to a specific hex color (CSS shorthand supported!).
@ -94,7 +95,7 @@ export class StatusBar {
@Cordova({
sync: true
})
static backgroundColorByHexString(hexString: string) {};
static backgroundColorByHexString(hexString: string) { };
/**
* Hide the StatusBar
@ -102,7 +103,7 @@ export class StatusBar {
@Cordova({
sync: true
})
static hide() {};
static hide() { };
/**
* Show the StatusBar
@ -110,11 +111,12 @@ export class StatusBar {
@Cordova({
sync: true
})
static show() {};
static show() { };
/**
* Whether the StatusBar is currently visible or not.
*/
@CordovaProperty
static get isVisible() { return window.StatusBar.isVisible; }
}