-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
88 lines (88 loc) · 2.75 KB
/
index.d.ts
File metadata and controls
88 lines (88 loc) · 2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import { IonicNativePlugin } from '@ionic-native/core';
/**
* @name Status Bar
* @description
* Manage the appearance of the native status bar.
*
* Requires Cordova plugin: `cordova-plugin-statusbar`. For more info, please see the [StatusBar plugin docs](https://github.com/apache/cordova-plugin-statusbar).
*
* @usage
* ```typescript
* import { StatusBar } from '@ionic-native/status-bar';
*
* constructor(private statusBar: StatusBar) { }
*
* ...
*
* // let status bar overlay webview
* this.statusBar.overlaysWebView(true);
*
* // set status bar to white
* this.statusBar.backgroundColorByHexString('#ffffff');
* ```
*
*/
export declare class StatusBar extends IonicNativePlugin {
/**
* Set whether the status bar overlays the main app view. The default
* is true.
*
* @param {boolean} doesOverlay Whether the status bar overlays the main app view.
*/
overlaysWebView(doesOverlay: boolean): void;
/**
* Gets the current height (in CSS pixels) of system statusbar.
*
* **Note that this is implemented currently only on Android**
*
* @param packageSuccess Callback invoked with the current statusbar height.
* @param packageError Optional callback invoked in case of an error.
* @returns {string}
*/
getStatusBarHeight(packageSuccess: Function, packageError?: Function): void;
/**
* Use the default statusbar (dark text, for light backgrounds).
*/
styleDefault(): void;
/**
* Use the lightContent statusbar (light text, for dark backgrounds).
*/
styleLightContent(): void;
/**
* Use the blackTranslucent statusbar (light text, for dark backgrounds).
*/
styleBlackTranslucent(): void;
/**
* Use the blackOpaque statusbar (light text, for dark backgrounds).
*/
styleBlackOpaque(): void;
/**
* Set the status bar to a specific named color. Valid options:
* black, darkGray, lightGray, white, gray, red, green, blue, cyan, yellow, magenta, orange, purple, brown.
*
* iOS note: you must call StatusBar.overlaysWebView(false) to enable color changing.
*
* @param {string} colorName The name of the color (from above)
*/
backgroundColorByName(colorName: string): void;
/**
* Set the status bar to a specific hex color (CSS shorthand supported!).
*
* iOS note: you must call StatusBar.overlaysWebView(false) to enable color changing.
*
* @param {string} hexString The hex value of the color.
*/
backgroundColorByHexString(hexString: string): void;
/**
* Hide the StatusBar
*/
hide(): void;
/**
* Show the StatusBar
*/
show(): void;
/**
* Whether the StatusBar is currently visible or not.
*/
isVisible: boolean;
}