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 `removeAllListeners()` Capacitor Plugin Method #24

Closed bosh-code closed 11 months ago

bosh-code commented 11 months ago

Capacitor provides a method for removing all registered listeners. Added this method to the plugin and updated the docs to reflect this change.

This method should be used if there is the possibility of calling the addListener method multiple times. Call it first to remove all listeners, before adding a new one to avoid side effects.

bosh-code commented 11 months ago

@AlwaysLoveme any thoughts?

AlwaysLoveme commented 11 months ago

@AlwaysLoveme any thoughts?

merged