-
public interface ControllerChangeHandler.ControllerChangeListenerA listener interface useful for allowing external classes to be notified of change events.
-
-
Method Summary
Modifier and Type Method Description abstract voidonChangeStarted(@Nullable() Controller to, @Nullable() Controller from, boolean isPush, @NonNull() ViewGroup container, @NonNull() ControllerChangeHandler handler)Called when a ControllerChangeHandler has started changing Controllers abstract voidonChangeCompleted(@Nullable() Controller to, @Nullable() Controller from, boolean isPush, @NonNull() ViewGroup container, @NonNull() ControllerChangeHandler handler)Called when a ControllerChangeHandler has completed changing Controllers -
-
Method Detail
-
onChangeStarted
abstract void onChangeStarted(@Nullable() Controller to, @Nullable() Controller from, boolean isPush, @NonNull() ViewGroup container, @NonNull() ControllerChangeHandler handler)
Called when a ControllerChangeHandler has started changing Controllers
- Parameters:
to- The new Controller or{@code null}if no Controller is being transitioned tofrom- The old Controller or{@code null}if there was no Controller before this transitionisPush- True if this is a push operation, or false if it's a pop.container- The containing ViewGrouphandler- The change handler being used.
-
onChangeCompleted
abstract void onChangeCompleted(@Nullable() Controller to, @Nullable() Controller from, boolean isPush, @NonNull() ViewGroup container, @NonNull() ControllerChangeHandler handler)
Called when a ControllerChangeHandler has completed changing Controllers
- Parameters:
to- The new Controller or{@code null}if no Controller is being transitioned tofrom- The old Controller or{@code null}if there was no Controller before this transitionisPush- True if this was a push operation, or false if it's a popcontainer- The containing ViewGrouphandler- The change handler that was used.
-
-
-
-