UiThreadUtil

open class UiThreadUtil

Utility for interacting with the UI thread.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Throws an AssertionException if the current thread is the UI thread.
Link copied to clipboard
open fun assertOnUiThread()
Throws an AssertionException if the current thread is not the UI thread.
Link copied to clipboard
Link copied to clipboard
open fun isOnUiThread(): Boolean
Link copied to clipboard
open fun removeOnUiThread(runnable: Runnable)
Removes the given Runnable on the UI thread.
Link copied to clipboard
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.