SearchSdkMainThreadWorker

object SearchSdkMainThreadWorker : MainThreadWorker

Static MainThreadWorker instance that works as a central point to access MainThreadWorker.

Functions

cancel
Link copied to clipboard
open override fun cancel(runnable: Runnable)
Remove any pending posts of Runnable that are in the message queue.
post
Link copied to clipboard
open override fun post(runnable: Runnable)
Posts passed runnable to the main thread.
postDelayed
Link copied to clipboard
open override fun postDelayed(delay: Long, unit: TimeUnit, runnable: Runnable)
Posts passed runnable to the main thread to be run after the specified amount of time elapses.
resetDelegate
Link copied to clipboard
fun resetDelegate()
Resets MainThreadWorker implementation to Search SDK default.

Properties

delegate
Link copied to clipboard
var delegate: MainThreadWorker
isMainThread
Link copied to clipboard
open override val isMainThread: Boolean
True if the current thread is the main thread, false otherwise.
mainExecutor
Link copied to clipboard
open override val mainExecutor: Executor
Executor that will run enqueued tasks on the main thread.