createHandler

open fun createHandler(looper: Looper, async: Boolean): Handler

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.