| Modifier and Type | Field and Description |
|---|---|
protected V |
mView |
protected S |
mViewState |
protected boolean |
mViewVisible |
| Constructor and Description |
|---|
BasePresenter() |
| Modifier and Type | Method and Description |
|---|---|
void |
onAttachView(V view)
Attach your view to this presenter.
|
void |
onCreate(S viewState)
Called when the presenter gets created.
|
void |
onDestroy()
Called when the presenter is destroyed.
|
void |
onDetachView()
Detach your view from this presenter.
|
void |
onViewHide()
Called when the view go hiding (Fragment onPause()).
|
void |
onViewVisible()
Called when the view go visible (Fragment onResume()).
|
protected V mView
protected boolean mViewVisible
public void onCreate(S viewState)
Presenterpublic void onAttachView(V view)
PresenteronAttachView in interface Presenter<V,S extends ViewState>view - The view will associated with this presenter.public void onViewVisible()
PresenteronViewVisible in interface Presenter<V,S extends ViewState>public void onViewHide()
PresenteronViewHide in interface Presenter<V,S extends ViewState>public void onDetachView()
PresenteronDetachView in interface Presenter<V,S extends ViewState>public void onDestroy()
Presenter