AlwaysLoveme / capacitor-plugin-safe-area

capacitor plugin to get safeArea info on Android and IOS, support Capacitor6
MIT License
66 stars 14 forks source link

Add event listener because some devices can change the safe area #8

Closed digaus closed 1 year ago

digaus commented 1 year ago

We could implement a layout listener like Keyboard Plugin does:

https://github.com/ionic-team/capacitor-plugins/blob/main/keyboard/android/src/main/java/com/capacitorjs/plugins/keyboard/Keyboard.java#L61

With this we could emit an event so the safe areas can get updated

AlwaysLoveme commented 1 year ago

We could implement a layout listener like Keyboard Plugin does:

https://github.com/ionic-team/capacitor-plugins/blob/main/keyboard/android/src/main/java/com/capacitorjs/plugins/keyboard/Keyboard.java#L61

With this we could emit an event so the safe areas can get updated

this feature already in the latest version