fm.liveswitch.android.Utility Class Reference

Classes

interface  RunnableWithException
 

Static Public Member Functions

static void dispatchToMainThread (final IAction0 action)
 Dispatches an action to the main thread. More...
 
static void dispatchToMainThread (final IAction0 action, final boolean forceSync)
 Dispatches an action to the main thread. More...
 

Member Function Documentation

◆ dispatchToMainThread() [1/2]

static void fm.liveswitch.android.Utility.dispatchToMainThread ( final IAction0  action)
static

Dispatches an action to the main thread.

Parameters
controlThe control.
actionThe action.

◆ dispatchToMainThread() [2/2]

static void fm.liveswitch.android.Utility.dispatchToMainThread ( final IAction0  action,
final boolean  forceSync 
)
static

Dispatches an action to the main thread.

Parameters
controlThe control.
actionThe action.
forceSyncWhether or not to force the action to run synchronously.