ly.img.android.pesdk.utils / ThreadUtils / runOnMainThread

runOnMainThread

static fun runOnMainThread(@NonNull runnable: ThreadUtils.MainThreadRunnable): void

Run Ui operation on the main thread at the next UI Frame or instant if the execution thread already the main thread.

Parameters

runnable - ThreadUtils.MainThreadRunnable: the runnable.