Destination

interface Destination

Implementations of Destination represent minimum set of data, required to show screen.

Each implementation should be registered in Json via NavigationControllerSaver with Polymorphic serializer, so that it can be properly saved and restored by the navigation system.

Example:

@Serializable
data class ProfileDestination(val userId: String) : Destination {
override val args = Args()
}

Inheritors

Types

Link copied to clipboard
@Serializable
data class Args(val backstackIndex: Int = 0, val transition: Transition? = null, val key: String = "", val showTopBar: Boolean = false, val showNavigationBar: Boolean = false, val skipBackstack: Boolean = false, var result: Destination.Result? = null)

The minimum set of data required for navigation system to handle Destination.

Link copied to clipboard
interface Result

Each implementation should be registered in Json via NavigationControllerSaver with Polymorphic serializer, so that it can be properly saved and restored by the navigation system.

Properties

Link copied to clipboard
abstract val args: Destination.Args