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/04/14 09:04:54 UTC

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

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


   Hello, I have seen that you have implemented this in production. I am using Ionic, and I cannot find a way to use this function (as Ionic's StatusBar library does not have this funcion implemented). Let me describe the issue.
   
   If I try to use StatusBar via
   ```ts
   declare let window any;
   ```
   it seems that the height function is not defined, as printing `window.StatusBar` gives me:
   ```
   StatusBar:  
   backgroundColorByHexString: ƒ (hexString)
   backgroundColorByName: ƒ (colorname)
   hide: ƒ ()
   isVisible: true
   overlaysWebView: ƒ (doOverlay)
   show: ƒ ()
   styleBlackOpaque: ƒ ()
   styleBlackTranslucent: ƒ ()
   styleDefault: ƒ ()
   styleLightContent: ƒ ()
   __proto__: Object
   ```
   Just to clarify, I am using `cordova` via `ionic cordova run android` and using the device inspector to view the console output.
   
   Sorry if this is a somewhat naive question, but I have been reading about this for days and I cannot seem to find any way to make this function callable. Any help would be appreciated!!!


-- 
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