I would like to ask how you can configure your own event listener in your Cordoba plugin.
I have this one Share dialogfor my Android and I wanted my Javascript to set the listener for onShareDialogDismissoronShareDialogLaunched
What could happen in Javascript would look like this.
document.addEventListener('onShareDialogDismiss', listenerCallback, false);
document.addEventListener('onShareDialogLaunch', launchCallback, false);
I have this code from Titanium, but it uses the class TiViewProxymost likely to find out how you could make an alternative for fireEvent()in a clean Android implementation
Thanks!
source
share