In package com.nhaarman.acorn.navigation.experimental
class com.nhaarman.acorn.navigation.experimental.CombinedScene
A Scene that combines two Scenes into one. The key of this Scene is taken from secondScene.
This class is used in conjunction with ConcurrentPairNavigator.
Fields
key: SceneKey
A unique identifier for this Scene.
This key can be used to determine what layout to show, and can be used to save and restore instance state, if needed.
firstScene: Scene
secondScene: Scene
Constructors
A Scene that combines two Scenes into one. The key of this Scene is taken from secondScene.
This class is used in conjunction with ConcurrentPairNavigator.
Methods
fun onStart()
Called when this Scene is started.
- No parameters
fun attach(v: CombinedContainer)
Attaches given V to this Scene.
-
v: CombinedContainer
The user interface that is being attached.
fun detach(v: CombinedContainer)
Detaches any views from this scene.
Will always be preceded by a call to attach.
fun onStop()
Called when this Scene is stopped.
- No parameters
fun onDestroy()
Called when this Scene will be destroyed.
After a call to this method no more calls should be made to this Scene.
- No parameters