Google berkomitmen untuk mendorong terwujudnya keadilan ras bagi komunitas Kulit Hitam. Lihat caranya.

UiThreadTest

public abstract @interface UiThreadTest
implements Annotation

androidx.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.

Use runOnMainSync(Runnable) if you need to switch in and out of the UI thread within your method.

Summary

Inherited methods

From interface java.lang.annotation.Annotation