postAtTime
inline fun Handler.postAtTime(uptimeMillis: Long, token: Any? = null, crossinline action: () -> Unit): Runnable(source)
Version of Handler.postAtTime which re-orders the parameters, allowing the action to be placed outside of parentheses.
handler.postAtTime(200) {
doSomething()
}
Content copied to clipboard
Return
the created Runnable
Parameters
uptimeMillis
The absolute time at which the callback should run, using the android.os.SystemClock#uptimeMillis time-base.
token
An optional object with which the posted message will be associated.
action
The action that will be executed.