Tutorial by Topics: eventbus

@Subscribe(threadMode = ThreadMode.POSTING) public void onEvent(EventClass event) { } Thread ModeDescriptionThreadMode.POSTINGWill be called on the same thread that the event was posted on. This is the default mode.ThreadMode.MAINWill be called on the main UI thread.ThreadMode.BACKGROUNDW...
Otto is deprecated in favor of RxJava and RxAndroid. These projects permit the same event-driven programming model as Otto, but they’re more capable and offer better control of threading.
Event buses are a useful way of communicating between components which are not directly related, i.e. Have no parent-child relationship. It is just an empty vue instance, which can be used to $emit events or listen $on the said events. export default new Vue() Use vuex if your applicat...

Page 1 of 1