In package com.nhaarman.acorn.navigation.experimental
class com.nhaarman.acorn.navigation.experimental.CompositeParallelNavigator
Constructors
-
initialDestination: Destination
-
savedState: NavigatorState?
Methods
abstract fun serialize(destination: Destination): String
-
destination: Destination
abstract fun deserialize(serializedDestination: String): Destination
-
serializedDestination: String
-
destination: Destination
-
savedState: NavigatorState?
fun select(destination: Destination)
-
destination: Destination
open fun onStart()
Starts this Navigator.
Calling this method when the Navigator is not started or destroyed triggers a call to Scene.onStart for the Scene that is currently active in the Navigator. Listeners registered with addNavigatorEventsListener will be notified of that Scene through Events.scene.
Calling this method when the Navigator is started or destroyed has no effect.
- No parameters
open fun onStop()
Stops this Navigator.
Calling this method when the Navigator is started triggers a call to Scene.onStop for any Scenes that are currently active in the Navigator.
Calling this method when the Navigator is stopped or destroyed has no effect.
- No parameters
open fun onDestroy()
Destroys this Navigator.
Calling this method when the Navigator is started will trigger a call to Scene.onStop for the Scene that is currently active in the Navigator. Furthermore, a call to Scene.onDestroy is triggered for every Scene this Navigator is managing.
Calling this method when the Navigator is stopped triggers a call to Scene.onDestroy for every Scene this Navigator is managing.
Calling this method when the Navigator is destroyed has no effect.
When this method has been called, the Navigator must be considered as dead, and no calls to onStart or onStop should be done anymore.
- No parameters
open fun onBackPressed(): Boolean
Invoked when the user presses the back button.
- No parameters
- No parameters
open fun isDestroyed(): Boolean
Returns whether this Navigator has been destroyed.
- No parameters