Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
3.1.0.tar.gz | 2017-11-28 | 4.0 MB | |
3.1.0.zip | 2017-11-28 | 4.6 MB | |
README.md | 2017-11-28 | 1.2 kB | |
Totals: 3 Items | 8.7 MB | 0 |
Added
MvpQueueingBasePresenter
: This Presenter has a methodonceViewAttached(ViewAction)
that internally queues allViewAction
if no view is attached to this presenter and executes all queued actions once a view is attached. If a view is attached, the ViewAction executes immediately. This class is useful in MVP powered apps with backstack navigation.
Changes
MvpPresenter.detachView(boolean retainInstance)
is now split in two methods:detachView()
: Was the same asdetachView(retainInstance = true)
destroy()
: Was the same asdetachView(retainInstance = false)
Please note thatdestroy()
is called when the corresponding View is also destroyed permanently. For example, if FragmentA (View) has PresenterA. Once we push a new Fragment B (with Presenter B) on top of the stack,PresenterA.detachView()
is called because View of FragmentA is destroyed temporarily.
Deprecations
MvpPresenter.detachView(boolean retainInstance)
is deprecated now. UsedetachView()
anddestroy()
.MvpBasePresenter.getView()
andMvpBasePresenter.isViewAttached()
are deprecated. UseMvpBasePresenter.ifViewAttached(ViewAction)
, see [#233]