Annotation Interface UiThread


Denotes that the annotated method or constructor should only be called on the UI thread. If the annotated element is a class, then all methods in the class should be called on the UI thread.

UI thread is used to process UI events, calculate animations, measure and layout views, and record drawing commands. UI thread can be the same as the main thread, but should be different from the render thread.