runOnUiThread

open fun runOnUiThread(runnable: Runnable): Boolean

Runs the given Runnable on the UI thread.


open fun runOnUiThread(runnable: Runnable, delayInMs: Long): Boolean

Runs the given Runnable on the UI thread with the specified delay.