postDelayed
inline fun Handler.postDelayed(delayInMillis: Long, token: Any? = null, crossinline action: () -> Unit): Runnable(source)
Version of Handler.postDelayed which re-orders the parameters, allowing the action to be placed outside of parentheses.
handler.postDelayed(200) {
doSomething()
}
Content copied to clipboard
Return
the created Runnable