All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.moe.tlaster.precompose.navigation.NavOptions.kt Maven / Gradle / Ivy

Go to download

A third-party Jetbrains Compose library with ViewModel, LiveData and Navigation support.

There is a newer version: 1.7.0-alpha03
Show newest version
package moe.tlaster.precompose.navigation

/**
 * [NavOptions] stores special options for navigate actions
 */
data class NavOptions(
    /**
     * Whether this navigation action should launch as single-top (i.e., there will be at most
     * one copy of a given destination on the top of the back stack regardless of path parameters).
     * To include path parameters see [includePath].
     */
    val launchSingleTop: Boolean = false,

    /**
     *  [includePath] overrides the default [launchSingleTop] behavior allowing
     *  single-top launch of destinations with variable path parameters.
     *
     *  This override has no effect when [launchSingleTop] is false, and it is disabled by default.
     */
    val includePath: Boolean = false,
    /**
     * The destination to pop up to before navigating. When set, all non-matching destinations
     * should be popped from the back stack.
     * @see [PopUpTo]
     */
    val popUpTo: PopUpTo = PopUpTo.None,
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy