Merge pull request #2634 from DickvdBrink/patch-7

Phonegap: Added StatusBar plugin interface
This commit is contained in:
Basarat Ali Syed
2014-08-06 19:33:32 +10:00

View File

@@ -1,6 +1,6 @@
// Type definitions for PhoneGap 2.3
// Project: http://phonegap.com
// Definitions by: Boris Yankov <https://github.com/borisyankov/>
// Definitions by: Boris Yankov <https://github.com/borisyankov/>, Dick van den Brink <https://github.com/DickvdBrink>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface GeolocationError {
@@ -575,6 +575,21 @@ interface LocalStorage {
}
*/
interface StatusBar {
isVisible: boolean;
overlaysWebView(doOverlay: boolean): void;
styleDefault(): void;
styleLightContent(): void;
styleBlackTranslucent(): void;
styleBlackOpaque(): void;
backgroundColorByName(colorname: string): void;
backgroundColorByHexString(hexString: string): void;
hide(): void;
show(): void;
}
declare var StatusBar: StatusBar;
interface /*PhoneGapNavigator extends*/ Navigator {
accelerometer: Accelerometer;
camera: Camera;