InterruptableUiController

public interface InterruptableUiController extends UiController


Similar to UiController but with one additional method that enables interrupting Espresso tasks.

This interface used for Espresso internals and shouldn't be called by external users. It's much safer to let all Espresso tasks to be successfully executed on the main thread.

Summary

Public methods

abstract void

Interrupts all Espresso tasks scheduled to be executed on the main thread.

Inherited methods

From androidx.test.espresso.UiController
abstract boolean

Injects a key event into the application.

abstract boolean

Injects a motion event into the application.

default boolean
abstract boolean

Types a string into the application using series of KeyEvents.

abstract void
loopMainThreadForAtLeast(long millisDelay)

Loops the main thread for a specified period of time.

abstract void

Loops the main thread until the application goes idle.

Public methods

interruptEspressoTasks

abstract void interruptEspressoTasks()

Interrupts all Espresso tasks scheduled to be executed on the main thread.

Note: This method is used for Espresso internals and shouldn't be called by external users. It's much safer to let all Espresso tasks to be successfully executed on the main thread.