-
public final class EpoxyAsyncUtilVarious helpers for running Epoxy operations off the main thread.
-
-
Field Summary
Fields Modifier and Type Field Description public final static HandlerMAIN_THREAD_HANDLERpublic final static HandlerAYSNC_MAIN_THREAD_HANDLERprivate static HandlerasyncBackgroundHandler
-
Method Summary
Modifier and Type Method Description static HandlergetAsyncBackgroundHandler()A Handler class that uses a separate background thread dedicated to Epoxy. static HandlercreateHandler(Looper looper, boolean async)Create a Handler with the given Looper static LooperbuildBackgroundLooper(String threadName)Create a new looper that runs on a new background thread. -
-
Method Detail
-
getAsyncBackgroundHandler
@MainThread() static Handler getAsyncBackgroundHandler()
A Handler class that uses a separate background thread dedicated to Epoxy. Additionally,this handler calls setAsynchronous foreach Message that is sent to it or Runnable that is posted to it
-
createHandler
static Handler createHandler(Looper looper, boolean async)
Create a Handler with the given Looper
- Parameters:
async- If true the Handler will calls setAsynchronous foreach Message that is sent to it or Runnable that is posted to it.
-
buildBackgroundLooper
static Looper buildBackgroundLooper(String threadName)
Create a new looper that runs on a new background thread.
-
-
-
-