CombinedScene

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

constructor(firstScene: Scene, secondScene: Scene)

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.

Parameters:

Methods

fun onStart()

Called when this Scene is started.

Parameters:
  • No parameters
fun attach(v: CombinedContainer)

Attaches given V to this Scene.

Parameters:
fun detach(v: CombinedContainer)

Detaches any views from this scene.

Will always be preceded by a call to attach.

Parameters:
fun onStop()

Called when this Scene is stopped.

Parameters:
  • 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.

Parameters:
  • No parameters