You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/05/21 12:18:16 UTC

[GitHub] [cordova-plugin-statusbar] ollm commented on pull request #134: feat: get statusbar height (top-inset)

ollm commented on pull request #134:
URL: https://github.com/apache/cordova-plugin-statusbar/pull/134#issuecomment-845910308


   Tested on android emulator and seems to work perfectly, except in Android's Multi-Window mode, for instance, when in portrait orientation, the status bar might be visible if I'm the top app, but won't be visible when I'm the bottom app.
   
   Maybe it can be implemented like this in Javascript:
   
   ``` javascript
   StatusBar.height(onSuccess, onError);
   
   const onSuccess = (height, statusBarHidden) => {
       // do something with the statusbar height here
   }
   
   const onError = (error) => {
       // handle error state; should usually not ever activate
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org