@Documented
@Retention(value=CLASS)
@Target(value={METHOD,CONSTRUCTOR,TYPE,PARAMETER})
public @interface MainThread
Example:
@MainThread
public void deliverResult(D data) { ... }
Note: Ordinarily, an app's main thread is also the UI thread. However, under special circumstances, an app's main thread might not be its UI thread; for more information, see Thread annotations.
UiThread