Stay organized with collections
Save and categorize content based on your preferences.
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 |
Loops the main thread for a specified period of time.
|
abstract void |
Loops the main thread until the application goes idle.
|
|
Public methods
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.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[]]