com.arellomobile.mvp.InjectViewState Maven / Gradle / Ivy
package com.arellomobile.mvp;
import java.lang.annotation.Target;
import com.arellomobile.mvp.viewstate.MvpViewState;
import static java.lang.annotation.ElementType.TYPE;
/**
* Inject view state to {@link MvpPresenter#mViews} and
* {@link MvpPresenter#mViewState} presenter fields. Presenter, annotated with
* this, should be strongly typed on view interface(not write some like extends
* MvpPresenter<V extends SuperView>). Otherwise code generation make
* code, that broke your app.
*/
@Target(value = TYPE)
public @interface InjectViewState {
Class extends MvpViewState> value() default DefaultViewState.class;
Class extends MvpView> view() default DefaultView.class;
}