Hi all,

Bug 1291383 landed dispatch(Bundle) methods in EventDispatcher, which let you dispatch events to registered BundleEventListeners from Java, in addition to from JS.

Note that BundleEventListeners are registered using registerUiThreadListener and registerBackgroundThreadListener, so you cannot dispatch events to listeners registered using registerGeckoThreadListener. Also, these events are always asynchronous, even if you're dispatching to the current thread, but you can provide an EventCallback object for callback if needed.

Cheers,
Jim
_______________________________________________
mobile-firefox-dev mailing list
mobile-firefox-dev@mozilla.org
https://mail.mozilla.org/listinfo/mobile-firefox-dev

Reply via email to