UIStatusBarManager: isStatusBarHidden property
The isStatusBarHidden property indicates whether the status bar is hidden right now.
Value
A boolean.
- Read-only.
- Becomes
trueafter the root view controller'sprefersStatusBarHiddenis set totrue(tested). - No change notification: the status bar is determined by the view controller, and the view controller's value is set by the app itself.
Examples
js
application.addEventListener('sceneconnect', (e) => {
console.log(e.scene.statusBarManager.isStatusBarHidden);
});Result: logs false.
Corresponding iOS API
UIStatusBarManager.isStatusBarHidden.