ThreadLooperController

class ThreadLooperController(val layoutLooper: ShadowLooper = Shadows.shadowOf( Whitebox.invokeMethod<Any>(ComponentTree::class.java, "getDefaultLayoutThreadLooper") as Looper)) : BaseThreadLooperController

Helper class extracting looper functionality from BackgroundLayoutLooperRule that can be reused in other TestRules

Constructors

Link copied to clipboard
constructor(layoutLooper: ShadowLooper = Shadows.shadowOf( Whitebox.invokeMethod<Any>(ComponentTree::class.java, "getDefaultLayoutThreadLooper") as Looper))

Properties

Link copied to clipboard
val layoutLooper: ShadowLooper

Functions

Link copied to clipboard
open override fun clean()
Link copied to clipboard
open override fun init()
Link copied to clipboard
open override fun runOneTaskSync()

Runs one task on the background thread, blocking until it completes successfully or throws an exception.

Link copied to clipboard
Link copied to clipboard
open override fun runToEndOfTasksSync()

Runs through all tasks on the background thread, blocking until it completes successfully or throws an exception.