Android 12 Developer Preview is here! Try it out, and give us your feedback!

UiThreadTest

public abstract @interface UiThreadTest
implements Annotation

android.support.test.annotation.UiThreadTest


Methods annotated with this annotation will be executed on the application's UI thread (or main thread).

This annotation will only take effect for Test, Before or After methods.

Summary

Inherited methods

From interface java.lang.annotation.Annotation