You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the release of Cordova Android 15.0.0, functionality of the StatusBar plugin was integrated into Cordova Android (though, there seems to be an issue). Part of the functionality is now exposed through the window.statusbar object. The window.statusbar object is part of the HTML specification (https://developer.mozilla.org/en-US/docs/Web/API/Window/statusbar) and contains a single property: readonly visible. To expand on that object feels strange to me. Moreover, it creates a bit of a hurdle for TypeScript users as we have to convince TS that this object's visible property is in fact not readonly, for example. Why no use something like a global cdvStatusBar object and prevent the confusion?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
With the release of Cordova Android 15.0.0, functionality of the StatusBar plugin was integrated into Cordova Android (though, there seems to be an issue). Part of the functionality is now exposed through the window.statusbar object. The window.statusbar object is part of the HTML specification (https://developer.mozilla.org/en-US/docs/Web/API/Window/statusbar) and contains a single property: readonly visible. To expand on that object feels strange to me. Moreover, it creates a bit of a hurdle for TypeScript users as we have to convince TS that this object's visible property is in fact not readonly, for example. Why no use something like a global cdvStatusBar object and prevent the confusion?
Beta Was this translation helpful? Give feedback.
All reactions