Package-level declarations

Types

Link copied to clipboard
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.

Link copied to clipboard

The entry point activity for the first view in the MVI with Compose demo. It sets up the Compose content via MVIFirstView and delegates lifecycle events to it.

Link copied to clipboard
class MVISecondView(context: Context, viewModel: SecondViewModel)

The Composable view for the second screen in the MVI with Compose demo. It retrieves cargo from the Shuttle warehouse using a cargo ID passed from the first screen and displays the resulting image, a loading indicator, or an error state accordingly.

Link copied to clipboard

The destination activity for the second view in the MVI with Compose demo. It receives cargo from the first view, sets up the Compose content via MVISecondView, and handles instance state persistence through Shuttle.