public static class NavDisplay


Object that indicates the features that can be handled by the NavDisplay

Summary

Public fields

static @NonNull NavDisplay

Public methods

final @ExtensionFunctionType @NonNull Function1<@NonNull AnimatedContentTransitionScope<@NonNull ?>, @NonNull ContentTransform>
final @NonNull Map<@NonNull String, @NonNull Object>

Function to be called on the NavEntry.metadata to notify the NavDisplay that, when popping from backstack, the content should be animated using the provided ContentTransform.

final @NonNull Map<@NonNull String, @NonNull Object>

Function to be called on the NavEntry.metadata to notify the NavDisplay that, when popping from backstack using a Predictive back gesture, the content should be animated using the provided ContentTransform.

final @NonNull Map<@NonNull String, @NonNull Object>

Function to be called on the NavEntry.metadata to notify the NavDisplay that the content should be animated using the provided ContentTransform.

Public fields

INSTANCE

Added in 1.0.0-alpha02
public static @NonNull NavDisplay INSTANCE

Public methods

popTransitionSpec

Added in 1.0.0-alpha02
public final @NonNull Map<@NonNull String, @NonNull ObjectpopTransitionSpec(
    @ExtensionFunctionType @NonNull Function1<@NonNull AnimatedContentTransitionScope<@NonNull ?>, ContentTransform> popTransitionSpec
)

Function to be called on the NavEntry.metadata to notify the NavDisplay that, when popping from backstack, the content should be animated using the provided ContentTransform.

predictivePopTransitionSpec

Added in 1.0.0-alpha02
public final @NonNull Map<@NonNull String, @NonNull ObjectpredictivePopTransitionSpec(
    @ExtensionFunctionType @NonNull Function1<@NonNull AnimatedContentTransitionScope<@NonNull ?>, ContentTransform> predictivePopTransitionSpec
)

Function to be called on the NavEntry.metadata to notify the NavDisplay that, when popping from backstack using a Predictive back gesture, the content should be animated using the provided ContentTransform.

transitionSpec

Added in 1.0.0-alpha02
public final @NonNull Map<@NonNull String, @NonNull ObjecttransitionSpec(
    @ExtensionFunctionType @NonNull Function1<@NonNull AnimatedContentTransitionScope<@NonNull ?>, ContentTransform> transitionSpec
)

Function to be called on the NavEntry.metadata to notify the NavDisplay that the content should be animated using the provided ContentTransform.