NavDisplay
-
Cmn
object NavDisplay
Object that indicates the features that can be handled by the NavDisplay
Summary
Nested types |
|---|
|
The key for |
|
The key for |
object NavDisplay.TransitionKey : NavMetadataKeyThe key for |
Public functions |
||
|---|---|---|
Map<String, Any> |
popTransitionSpec(popTransitionSpec: AnimatedContentTransitionScope<Scene<*>>.() -> ContentTransform?)Function to be called on the |
Cmn
|
Map<String, Any> |
predictivePopTransitionSpec(Function to be called on the |
Cmn
|
Map<String, Any> |
transitionSpec(transitionSpec: AnimatedContentTransitionScope<Scene<*>>.() -> ContentTransform?)Function to be called on the |
Cmn
|
Public functions
popTransitionSpec
fun popTransitionSpec(popTransitionSpec: AnimatedContentTransitionScope<Scene<*>>.() -> ContentTransform?): Map<String, Any>
Function to be called on the NavEntry.metadata or Scene.metadata to notify the NavDisplay that, when popping from backstack, the content should be animated using the provided ContentTransform.
IMPORTANT NavDisplay only looks at the Scene.metadata to determine the popTransitionSpec, it is the responsibility of the Scene.metadata to decide which popTransitionSpec to return, whether that be from the NavEntry.metadata or something custom.
| Parameters | |
|---|---|
popTransitionSpec: AnimatedContentTransitionScope<Scene<*>>.() -> ContentTransform? |
the |
predictivePopTransitionSpec
fun predictivePopTransitionSpec(
predictivePopTransitionSpec: AnimatedContentTransitionScope<Scene<*>>.(Int) -> ContentTransform?
): Map<String, Any>
Function to be called on the NavEntry.metadata or Scene.metadata to notify the NavDisplay that, when popping from backstack using a Predictive back gesture, the content should be animated using the provided ContentTransform.
IMPORTANT NavDisplay only looks at the Scene.metadata to determine the predictivePopTransitionSpec, it is the responsibility of the Scene.metadata to decide which predictivePopTransitionSpec to return, whether that be from the NavEntry.metadata or something custom.
| Parameters | |
|---|---|
predictivePopTransitionSpec: AnimatedContentTransitionScope<Scene<*>>.(Int) -> ContentTransform? |
the |
transitionSpec
fun transitionSpec(transitionSpec: AnimatedContentTransitionScope<Scene<*>>.() -> ContentTransform?): Map<String, Any>
Function to be called on the NavEntry.metadata or Scene.metadata to notify the NavDisplay of how the content should be animated using the provided ContentTransform.
IMPORTANT NavDisplay only looks at the Scene.metadata to determine the transitionSpec, it is the responsibility of the Scene.metadata to decide which transitionSpec to return, whether that be from the NavEntry.metadata or something custom.
| Parameters | |
|---|---|
transitionSpec: AnimatedContentTransitionScope<Scene<*>>.() -> ContentTransform? |
the |