I would like to ask on how you can set your own event listener in your Cordova plugin.
I have this Share dialog
for my Android and I wanted to have my Javascript to set a listener for onShareDialogDismiss
or onShareDialogLaunched
What would likely to happen in Javascript would look like this.
// Set a listener for dialog dismiss
document.addEventListener('onShareDialogDismiss', listenerCallback, false);
// Set a listener for dialog launch
document.addEventListener('onShareDialogLaunch', launchCallback, false);
I have this code from Titanium, but it's using TiViewProxy
class, would likely to know how you could do an alternative for fireEvent()
in pure Android implementation
Thanks!