public static interface Triad.Listener<T>
| Modifier and Type | Method and Description |
|---|---|
void |
backward(Screen<T> newScreen,
TransitionAnimator animator,
Triad.Callback callback)
Notifies the listener that the backstack will be moved back to given Screen.
|
void |
forward(Screen<T> newScreen,
TransitionAnimator animator,
Triad.Callback callback)
Notifies the listener that the backstack will forward to a new Screen.
|
void |
replace(Screen<T> newScreen,
TransitionAnimator animator,
Triad.Callback callback)
Notifies the listener that the backstack will be replaced, with given Screen on top.
|
void |
screenPopped(Screen<T> poppedScreen) |
void |
screenPushed(Screen<T> pushedScreen) |
void forward(@NonNull
Screen<T> newScreen,
@Nullable
TransitionAnimator animator,
@NonNull
Triad.Callback callback)
newScreen - The new Screen to be shown.callback - Must be called to indicate completion.void backward(@NonNull
Screen<T> newScreen,
@Nullable
TransitionAnimator animator,
@NonNull
Triad.Callback callback)
newScreen - The new screen to be shown.callback - Must be called to indicate completion.void replace(@NonNull
Screen<T> newScreen,
@Nullable
TransitionAnimator animator,
@NonNull
Triad.Callback callback)
newScreen - The new screen to be shown.callback - Must be called to indicate completion.