runOnUIThread

open fun runOnUIThread(@NonNull runnable: Runnable)

Context switching is performed to the main thread.

Parameters

runnable

The Runnable that will be executed. since 3.6.0