Class MvpNullObjectBasePresenter<V extends MvpView>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void attachView​(V view)
      Set or attach the view to this presenter
      void detachView​(boolean retainInstance)
      Will be called if the view has been destroyed.
      protected V getView()
      Fetches the attached view.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MvpNullObjectBasePresenter

        public MvpNullObjectBasePresenter()
    • Method Detail

      • attachView

        public void attachView​(V view)
        Description copied from interface: MvpPresenter
        Set or attach the view to this presenter
        Specified by:
        attachView in interface MvpPresenter<V extends MvpView>
        Parameters:
        view - where presenter is attached
      • getView

        @NonNull
        protected V getView()
        Fetches the attached view.
        Returns:
        The view.
      • detachView

        public void detachView​(boolean retainInstance)
        Description copied from interface: MvpPresenter
        Will be called if the view has been destroyed. Typically this method will be invoked from Activity.detachView() or Fragment.onDestroyView()
        Specified by:
        detachView in interface MvpPresenter<V extends MvpView>
        Parameters:
        retainInstance - flag used to retain instance