InterruptableUiController


interface InterruptableUiController : 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 functions

Unit

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

Inherited functions

From androidx.test.espresso.UiController
Boolean

Injects a key event into the application.

Boolean

Injects a motion event into the application.

Boolean
Boolean

Types a string into the application using series of KeyEvents.

Unit

Loops the main thread for a specified period of time.

Unit

Loops the main thread until the application goes idle.

Public functions

interruptEspressoTasks

fun interruptEspressoTasks(): Unit

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.