NavigationEvent

sealed class NavigationEvent

Represents one-shot navigation side effects emitted by the first view model. The view collects these events and executes the corresponding platform navigation.

Inheritors

Types

Link copied to clipboard
data class NavigateNormally(val imageModel: ImageModel?) : NavigationEvent

Signals that the view should navigate to the second screen by passing the image model directly via android.content.Intent, demonstrating the crash scenario.

Link copied to clipboard
data class NavigateWithShuttle(val imageModel: ImageModel?) : NavigationEvent

Signals that the view should navigate to the second screen by transporting the image model safely via Shuttle.