| Constructor and Description |
|---|
AbstractPresenter() |
| Modifier and Type | Method and Description |
|---|---|
V |
getView() |
boolean |
isViewAttached() |
void |
onDestroyed()
Called when a user leaves the view completely.
|
void |
onViewAttached(V view)
Called when the view attached to the screen.
|
void |
onViewDetached()
Called when the view detached from the screen.
|
public void onViewAttached(V view)
Presenter
This method will be invoked during Activity.onStart(), Fragment.onResume()
and View.onAttachedToWindow().
onViewAttached in interface Presenter<V>view - the view that the presenter interacts withpublic void onViewDetached()
Presenter
This method will be invoked during Activity.onStop(), Fragment.onPause()
and View.onDetachedFromWindow().
onViewDetached in interface Presenter<V>public void onDestroyed()
PresenterNote that on configuration changes like rotation, presenter instance will be alive.
onDestroyed in interface Presenter<V>@Nullable public V getView()
public boolean isViewAttached()
isViewAttached in interface Presenter<V>