mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-19 05:03:32 +08:00
Merge pull request #2634 from DickvdBrink/patch-7
Phonegap: Added StatusBar plugin interface
This commit is contained in:
17
phonegap/phonegap.d.ts
vendored
17
phonegap/phonegap.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user