ApplicationComponent - The ApplicationComponent to use for BasePresenter creation.public class TriadDelegate<ApplicationComponent>
extends java.lang.Object
Activity.
When using the TriadDelegate, you must proxy the following Activity
lifecycle methods to it:
| Modifier and Type | Method and Description |
|---|---|
static <T> TriadDelegate<T> |
createFor(android.app.Activity activity) |
static <T> TriadDelegate<T> |
createFor(android.app.Activity activity,
TransitionAnimator defaultTransitionAnimator) |
Screen<ApplicationComponent> |
getCurrentScreen() |
Triad |
getTriad()
|
void |
onActivityResult(int requestCode,
int resultCode,
android.content.Intent data) |
boolean |
onBackPressed() |
void |
onCreate() |
void |
onDestroy() |
void |
onPause() |
void |
onResume() |
void |
setOnScreenChangedListener(OnScreenChangedListener<ApplicationComponent> onScreenChangedListener)
Sets an
OnScreenChangedListener to be notified of screen changes. |
@NonNull public Screen<ApplicationComponent> getCurrentScreen()
public void onCreate()
public void onResume()
public boolean onBackPressed()
public void onActivityResult(int requestCode,
int resultCode,
android.content.Intent data)
public void onPause()
public void onDestroy()
@NonNull public Triad getTriad()
public void setOnScreenChangedListener(@Nullable
OnScreenChangedListener<ApplicationComponent> onScreenChangedListener)
OnScreenChangedListener to be notified of screen changes.@NonNull public static <T> TriadDelegate<T> createFor(@NonNull android.app.Activity activity)
@NonNull public static <T> TriadDelegate<T> createFor(@NonNull android.app.Activity activity, @NonNull TransitionAnimator defaultTransitionAnimator)