This is an automated email from the ASF dual-hosted git repository. GitToTheHub pushed a commit to branch pr-doc-statusbar.js-setBackgroundColor in repository https://gitbox.apache.org/repos/asf/cordova-android.git
commit e3df5e03ded561c54086a789349f42aed09b5fb0 Author: Manuel Beck <[email protected]> AuthorDate: Tue Jun 23 12:11:38 2026 +0200 doc(statusbar.js): document `setBackgroundColor()` --- cordova-js-src/plugin/android/statusbar.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cordova-js-src/plugin/android/statusbar.js b/cordova-js-src/plugin/android/statusbar.js index 131c0139..a437504a 100644 --- a/cordova-js-src/plugin/android/statusbar.js +++ b/cordova-js-src/plugin/android/statusbar.js @@ -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, --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
