postOnMainDelayed

fun postOnMainDelayed(task: Runnable, delay: Long = 0)

Post a runnable object on main thread.

Parameters

task

Runnable that will be executed on main thread.

delay

Time in ms delay before executing the task.