public class UiEventBus extends SimpleEventBus
SimpleEventBus implementation that may be used for event buses that should post their
events on the Main thread. This event bus implementation uses Handler with
main looper to post the events supplied to post(Object)
on the Main UI thread.mBus| Constructor and Description |
|---|
UiEventBus()
Same as
UiEventBus(Bus) with default instance of Bus. |
UiEventBus(Bus bus)
Creates a new instance of UiEventBus that wraps the specified bus.
|
| Modifier and Type | Method and Description |
|---|---|
void |
post(Object event)
Delegates to
Bus#post(Object). |
getBus, register, unregisterpublic UiEventBus()
UiEventBus(Bus) with default instance of Bus.public UiEventBus(@NonNull Bus bus)
bus - The bus to be wrapped.SimpleEventBus.getBus()public void post(@NonNull Object event)
SimpleEventBusBus#post(Object).post in interface EventBuspost in class SimpleEventBusevent - The desired event to post.