Package moxy

Annotation Type InjectViewState


  • @Target(TYPE)
    @Inherited
    public @interface InjectViewState
    Inject view state to MvpPresenter.views and MvpPresenter.viewState presenter fields. Presenter annotated with this should be strongly typed with a View interface (do not write something like extends MvpPresenter<V extends SuperView>, or the code generation would make the code that would break your app).
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.Class<? extends MvpViewState> value  
      java.lang.Class<? extends MvpView> view  
    • Element Detail

      • value

        java.lang.Class<? extends MvpViewState> value
        Default:
        moxy.DefaultViewState.class
      • view

        java.lang.Class<? extends MvpView> view
        Default:
        moxy.DefaultView.class