capacitor-community / electron

Deploy your Capacitor apps to Linux, Mac, and Windows desktops, with the Electron platform! 🖥️
https://capacitor-community.github.io/electron/
MIT License
335 stars 59 forks source link

Added events #145

Closed jdgjsag67251 closed 2 years ago

jdgjsag67251 commented 2 years ago

I implemented events. See the updated documentation on how to use the functionality.

I wanted to implement it the same way as discussed in #137, but Electron copies the callback functions, meaning that the callback supplied to addListener would never be the same as the one supplied to removeListener.

KoenLav commented 2 years ago

@IT-MikeS we've been using this in production for about two months now.

Amy chance om getting this merged so it can be standardised and if needed improved upon?

justinmoon commented 2 years ago

This looks very nice to me. I'd like to be able to use in my app.

IT-MikeS commented 2 years ago

Merge conflicts need to be sorted on this one before I can review it