Java Code Examples for com.squareup.otto.ThreadEnforcer#MAIN
The following examples show how to use
com.squareup.otto.ThreadEnforcer#MAIN .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Events.java From ploggy with GNU General Public License v3.0 | 5 votes |
public static void initialize() { mBus = new Bus(ThreadEnforcer.MAIN); mHandler = new Handler(); // Activity and fragment lifecycle events make it difficult to reliably // make register and unregister calls in a 1-to-1 way. So we're going // to make sure that things only get registered once and unregistered if // they're actually registered. mRegisteredObjects = new HashSet<Object>(); }
Example 2
Source File: EventBusProvider.java From dhis2-android-dashboard with BSD 3-Clause "New" or "Revised" License | 4 votes |
private EventBusProvider() { mBus = new Bus(ThreadEnforcer.MAIN); }
Example 3
Source File: DataBus.java From FluxyAndroidTodo with MIT License | 4 votes |
public DataBus() { super(ThreadEnforcer.MAIN); }
Example 4
Source File: AndroidBus.java From tapchat-android with Apache License 2.0 | 4 votes |
public AndroidBus() { super(ThreadEnforcer.MAIN); }
Example 5
Source File: UIBus.java From meatspace-android with BSD 3-Clause "New" or "Revised" License | 4 votes |
public UIBus() { // events will be fired on the main thread this.bus = new Bus(ThreadEnforcer.MAIN); }
Example 6
Source File: ChatBus.java From meatspace-android with BSD 3-Clause "New" or "Revised" License | 4 votes |
public ChatBus() { // events will be fired on the main thread this.bus = new Bus(ThreadEnforcer.MAIN); }