This is an automated email from the ASF dual-hosted git repository.
GitToTheHub pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-android.git
The following commit(s) were added to refs/heads/master by this push:
new 50ee09e4 doc(statusbar.js): document `visible` property and
`setBackgroundColor` method (#1961)
50ee09e4 is described below
commit 50ee09e492d70dc78b962154ab56510a5d74af31
Author: Manuel Beck <[email protected]>
AuthorDate: Mon Jul 6 15:31:19 2026 +0200
doc(statusbar.js): document `visible` property and `setBackgroundColor`
method (#1961)
---
cordova-js-src/plugin/android/statusbar.js | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/cordova-js-src/plugin/android/statusbar.js
b/cordova-js-src/plugin/android/statusbar.js
index 131c0139..6363c20b 100644
--- a/cordova-js-src/plugin/android/statusbar.js
+++ b/cordova-js-src/plugin/android/statusbar.js
@@ -26,6 +26,11 @@ var statusBar = {};
const statusBarScript = document.createElement('script');
document.head.appendChild(statusBarScript);
+/**
+ * Sets the visibility of the status bar, which will only work if Android
EdgeToEdge is disabled.
+ * If cordova-plugin-statusbar is used, the call will be forwarded to
`window.StatusBar.show` or
+ * `window.StatusBar.hide` of the plugin.
+ */
Object.defineProperty(statusBar, 'visible', {
configurable: false,
enumerable: true,
@@ -52,6 +57,14 @@ Object.defineProperty(statusBar, 'visible', {
}
});
+/**
+ * Sets the background color of the visible status bar.
+ * Supports valid CSS color values, e.g. `rebeccapurple`, `#RRGGBBAA`,
`rgb(255 0 153)`.
+ *
+ * If cordova-plugin-statusbar is installed, calls are forwarded to the plugin
API:
+ * `window.StatusBar.backgroundColorByHexString`
+ * See {@link https://s.apache.org/cdv-plugin-statusbar} for
cordova-plugin-statusbar details.
+ */
Object.defineProperty(statusBar, 'setBackgroundColor', {
configurable: false,
enumerable: false,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]