MVIFirstView

class MVIFirstView(context: Context, viewModel: FirstViewModel, shuttle: Shuttle)

The Composable view for the first screen in the MVI with Compose demo. Dispatches intents to FirstViewModel and observes the resulting com.grarcht.shuttle.demo.mviwithcompose.state.CargoTransportUiState to enable navigation buttons when the image is loaded. Navigation side effects arrive as com.grarcht.shuttle.demo.mviwithcompose.navigation.NavigationEvents that this view executes.

Parameters

context

the context used to access resources and start activities.

viewModel

the MVI view model that processes intents and exposes UI state.

shuttle

the Shuttle instance used for safe cargo transport.

Constructors

Link copied to clipboard
constructor(context: Context, viewModel: FirstViewModel, shuttle: Shuttle)

Functions

Link copied to clipboard

Renders the first screen layout with navigation cards and a preview animation overlay.