mirror of
https://github.com/apache/cordova-android.git
synced 2026-07-06 00:00:08 +08:00
doc(statusbar.js): document setBackgroundColor()
This commit is contained in:
+8
@@ -52,6 +52,14 @@ Object.defineProperty(statusBar, 'visible', {
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Sets the background color of the status bar, which will visually only have an impact,
|
||||
* if the status bar is visible. The supported format is any valid CSS color value,
|
||||
* like `rebeccapurple`, `#RRGGBBAA`, `rgb(255 0 153)`.
|
||||
* If cordova-plugin-statusbar is installed, the call will be forwarded to
|
||||
* `window.StatusBar.backgroundColorByHexString`, where alpha is only supported if
|
||||
* `StatusBar.overlaysWebView` is set to `true`.
|
||||
*/
|
||||
Object.defineProperty(statusBar, 'setBackgroundColor', {
|
||||
configurable: false,
|
||||
enumerable: false,
|
||||
|
||||
Reference in New Issue
Block a user