ApowoGames / cordova-plugin-display-cutout

3 stars 2 forks source link

Add getDisplayCutoutUnadjusted method to ignore density #2

Open zommerfelds opened 2 years ago

zommerfelds commented 2 years ago

My game engine (using canvas) needs raw pixel values. I added a new method (for backwards compatibility) to get the insets without multiplying by the density. Hope this is useful!

Tested this on an Android 12 device (Pixel 5).