doc(statusbar.js): add documentation for visible property

This commit is contained in:
Manuel Beck
2026-06-23 22:06:15 +02:00
parent e3df5e03de
commit 4e37382d1a
+6
View File
@@ -26,6 +26,12 @@ 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, it works also on Android EdgeToEdge.
* If the plugin 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,