Moxy is MVP library for Android
presenter.detachView(view)
if this view
has been detachedMvpFragment
/MvpAppCompatFragment
lifecycle callbacksMvpView
will be detached from Presenter:
onSaveInstanceState
, if it will be called. You be able to not commit fragments transaction allowing state loss! Just use commit
or commitNow
! If you don't use Cicerone.onStop
otherwiseMvpView
will be restarted, it will apply only new commands!MvpView
will be recreated, it will apply all commands.OneExecutionStateStrategy
PS: Added MvpDelegate.onDestroyView()
which should be called when view will be destroyed. Causes of this is that detached view can stay alive. Example of use this beyond of Fragment is there.