DialogSceneStrategy
-
Cmn
class DialogSceneStrategy<T : Any> : SceneStrategy
A SceneStrategy that displays entries that have added dialog to their NavEntry.metadata within a Dialog instance.
This strategy should always be added before any non-overlay scene strategies.
Summary
Public companion functions |
||
|---|---|---|
Map<String, Any> |
dialog(dialogProperties: DialogProperties)Function to be called on the |
Cmn
|
Public constructors |
|
|---|---|
<T : Any> DialogSceneStrategy() |
Cmn
|
Public functions |
||
|---|---|---|
open Scene<T>? |
SceneStrategyScope<T>.calculateScene(entries: List<NavEntry<T>>)Given a |
Cmn
|
Inherited functions |
|||
|---|---|---|---|
|
Public companion functions
dialog
fun dialog(dialogProperties: DialogProperties = DialogProperties()): Map<String, Any>
Function to be called on the NavEntry.metadata to mark this entry as something that should be displayed within a Dialog.
| Parameters | |
|---|---|
dialogProperties: DialogProperties = DialogProperties() |
properties that should be passed to the containing |
Public constructors
Public functions
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.