Closed GoogleCodeExporter closed 8 years ago
We could definitely pass the eventbus down inthe the event module and fire
events directly on it. But I was enable / disable this with an option.
Sometimes you don`t want those events on your global event bus.
A Patch is always appreciated (or a github pull request)
Original comment by kurka.da...@gmail.com
on 13 Jul 2012 at 2:36
This issue was closed by revision c0253b2b349e.
Original comment by kurka.da...@gmail.com
on 15 Jul 2012 at 11:05
This issue was closed by revision 861f7499f596.
Original comment by kurka.da...@gmail.com
on 15 Jul 2012 at 11:05
Sent the pull request. With the patch it is possible to use this syntax:
eventBus.addHandler(PhoneGapAvailableEvent.TYPE, myPhoneGapAvailableHandler);
eventBus.addHandler(PhoneGapTimeoutEvent.TYPE, myPhoneGapTimeoutHandler)
eventBus.addHandler(BackButtonPressedEvent.TYPE, myBackButtonPressedHandler);
eventBus.addHandler(MenuButtonPressedEvent.TYPE, myMenuButtonPressedHandler);
// Create phonegap instance (could be done with Gin if the case)
PhoneGap phoneGap = GWT.create(PhoneGap.class)
phoneGap.setEventBus(eventBus);
// Initialize it
phoneGap.initializePhoneGap(10000);
Original comment by manuel.carrasco.m
on 15 Jul 2012 at 11:06
Original comment by kurka.da...@gmail.com
on 15 Jul 2012 at 11:17
thank you for taking the time to prepare this. Its really appreciated!
Original comment by kurka.da...@gmail.com
on 15 Jul 2012 at 11:18
Original comment by kurka.da...@gmail.com
on 23 Sep 2012 at 7:40
Original issue reported on code.google.com by
manuel.carrasco.m
on 13 Jul 2012 at 10:59