In package com.nhaarman.acorn.navigation
class com.nhaarman.acorn.navigation.Navigator.Events
An interface that is used to notify interested parties of Scene changes or finish events.
Navigator implementations can extend this interface to add functionality.
Methods
abstract fun scene(scene: Scene, data: TransitionData?)
Called when a Scene change occurs in the Navigator.
Will only be called if a Scene change occurs when the Navigator is in the started state, or when the Navigator enters the started state.
-
scene: Scene
the newly active Scene.
-
data: TransitionData?
abstract fun finished()
Called when the Navigator has finished.
Finish events occur when the Navigator has no more Scenes to show, such as a stack-based Navigator with an empty stack, or a wizard Navigator that reached the end of the wizard.
- No parameters