V - The type of MvpViewP - The type of MvpPresenterpublic class ActivityMvpDelegateImpl<V extends MvpView,P extends <any>> extends java.lang.Object implements ActivityMvpDelegate
ActivityMvpDelegate| Modifier and Type | Field and Description |
|---|---|
protected android.app.Activity |
activity |
static boolean |
DEBUG |
protected boolean |
keepPresenterInstance |
protected static java.lang.String |
KEY_MOSBY_VIEW_ID |
protected java.lang.String |
mosbyViewId |
| Constructor and Description |
|---|
ActivityMvpDelegateImpl(android.app.Activity activity,
MvpDelegateCallback<V,P> delegateCallback,
boolean keepPresenterInstance) |
| Modifier and Type | Method and Description |
|---|---|
void |
onContentChanged()
This method must be called from
Activity.onContentChanged() |
void |
onCreate(android.os.Bundle bundle)
This method must be called from
Activity.onCreate(Bundle). |
void |
onDestroy()
This method must be called from
Activity.onDestroy()}. |
void |
onPause()
This method must be called from
Activity.onPause() |
void |
onPostCreate(android.os.Bundle savedInstanceState)
This method must be called from
Activity.onPostCreate(Bundle) |
void |
onRestart()
This method must be called from
Activity.onRestart() |
void |
onResume()
This method must be called from
Activity.onResume() |
void |
onSaveInstanceState(android.os.Bundle outState)
This method must be called from
Activity.onSaveInstanceState(Bundle) |
void |
onStart()
This method must be called from
Activity.onStart() |
void |
onStop()
This method must be called from
Activity.onStop() |
protected static final java.lang.String KEY_MOSBY_VIEW_ID
public static boolean DEBUG
protected boolean keepPresenterInstance
protected android.app.Activity activity
protected java.lang.String mosbyViewId
public ActivityMvpDelegateImpl(android.app.Activity activity,
MvpDelegateCallback<V,P> delegateCallback,
boolean keepPresenterInstance)
activity - The ActivitydelegateCallback - The callbackkeepPresenterInstance - true, if the presenter instance should be kept across screen
orientation changes. Otherwise false.public void onCreate(android.os.Bundle bundle)
ActivityMvpDelegateActivity.onCreate(Bundle).
This method internally creates the presenter and attaches the view to it.onCreate in interface ActivityMvpDelegatepublic void onDestroy()
ActivityMvpDelegateActivity.onDestroy()}.
This method internally detaches the view from presenteronDestroy in interface ActivityMvpDelegatepublic void onPause()
ActivityMvpDelegateActivity.onPause()onPause in interface ActivityMvpDelegatepublic void onResume()
ActivityMvpDelegateActivity.onResume()onResume in interface ActivityMvpDelegatepublic void onStart()
ActivityMvpDelegateActivity.onStart()onStart in interface ActivityMvpDelegatepublic void onStop()
ActivityMvpDelegateActivity.onStop()onStop in interface ActivityMvpDelegatepublic void onRestart()
ActivityMvpDelegateActivity.onRestart()onRestart in interface ActivityMvpDelegatepublic void onContentChanged()
ActivityMvpDelegateActivity.onContentChanged()onContentChanged in interface ActivityMvpDelegatepublic void onSaveInstanceState(android.os.Bundle outState)
ActivityMvpDelegateActivity.onSaveInstanceState(Bundle)onSaveInstanceState in interface ActivityMvpDelegatepublic void onPostCreate(android.os.Bundle savedInstanceState)
ActivityMvpDelegateActivity.onPostCreate(Bundle)onPostCreate in interface ActivityMvpDelegate