mirror of
https://github.com/apache/cordova-android.git
synced 2026-07-06 00:00:08 +08:00
doc(statusbar.js): add documentation for visible property
This commit is contained in:
+6
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user