Annotation Type UiThread
-
@Documented @Retention(RUNTIME) @Target({METHOD,CONSTRUCTOR,TYPE,PARAMETER}) public @interface UiThreadIndicates that the target method should only be called on the UI thread. Methods running on UI thread should not callSlowmethods.If the annotated element is a class, then all methods in the class should be called on the UI thread.
If the annotated element is a method parameter, e.g. a
Runnable, it means the callback will be invoked on the UI thread.- See Also:
AnyThread