Annotation Type ProvidePresenter


  • @Target(METHOD)
    @Retention(RUNTIME)
    public @interface ProvidePresenter
    Called when Moxy can't find the right presenter instance in the PresenterStore.

    Attention! Don't use manually the method marked with this annotation! Use a presenter field whichever you want. If you override this method in a derived class, make it return the same type (not a requirement but recommendation).

    Requirements:

    • Method should return strictly the same class as the presenter field type
    • Presenter Types should be the same
    • Tags should be equal
    • Presenter IDs should be equal

    Note: if this method stays unused after the build, then Moxy'll never use this method and you should check annotation parameters. These parameters should be equal to @InjectPresenter parameters


    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static java.lang.String EMPTY  
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String presenterId  
      java.lang.String tag  
    • Field Detail

      • EMPTY

        static final java.lang.String EMPTY
    • Element Detail

      • tag

        java.lang.String tag
        Default:
        ""
      • presenterId

        java.lang.String presenterId
        Default:
        ""