epoxy-adapter / com.airbnb.epoxy / EpoxyAsyncUtil

EpoxyAsyncUtil

class EpoxyAsyncUtil

Various helpers for running Epoxy operations off the main thread.

Properties

AYSNC_MAIN_THREAD_HANDLER

static val AYSNC_MAIN_THREAD_HANDLER: Handler!

A Handler class that uses the main thread's Looper. Additionally, this handler calls Message#setAsynchronous(boolean) for each Message that is sent to it or Runnable that is posted to it

MAIN_THREAD_HANDLER

static val MAIN_THREAD_HANDLER: Handler!

A Handler class that uses the main thread's Looper.

Functions

buildBackgroundLooper

static fun buildBackgroundLooper(threadName: String!): Looper!

Create a new looper that runs on a new background thread.

createHandler

static fun createHandler(looper: Looper!, async: Boolean): Handler!

Create a Handler with the given Looper

getAsyncBackgroundHandler

static fun getAsyncBackgroundHandler(): Handler!

A Handler class that uses a separate background thread dedicated to Epoxy. Additionally, this handler calls Message#setAsynchronous(boolean) for each Message that is sent to it or Runnable that is posted to it