SinglePaneSceneStrategy
-
Cmn
class SinglePaneSceneStrategy<T : Any> : SceneStrategy
A SceneStrategy that always creates a 1-entry Scene simply displaying the last entry in the list.
Summary
Public constructors |
|
|---|---|
<T : Any> SinglePaneSceneStrategy() |
Cmn
|
Public functions |
||
|---|---|---|
open Scene<T> |
SceneStrategyScope<T>.calculateScene(entries: List<NavEntry<T>>)Given a |
Cmn
|
Inherited functions |
|||
|---|---|---|---|
|
Public constructors
Public functions
SceneStrategyScope.calculateScene
open fun SceneStrategyScope<T>.calculateScene(entries: List<NavEntry<T>>): Scene<T>
Given a SceneStrategyScope, calculate whether this SceneStrategy should take on the task of rendering one or more of the entries in the scope.
By returning a non-null Scene, your Scene takes on the responsibility of rendering the set of entries you declare in Scene.entries. If you return null, the next available SceneStrategy will be called.