Annotation Type UiThread


  • @Documented
    @Retention(RUNTIME)
    @Target({METHOD,CONSTRUCTOR,TYPE,PARAMETER})
    public @interface UiThread
    Indicates that the target method should only be called on the UI thread. Methods running on UI thread should not call Slow methods.

    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