Package-level declarations

Types

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

The Composable view for the first screen in the MVVM with Compose demo. Observes com.grarcht.shuttle.demo.core.viewmodel.FirstViewModel to enable navigation buttons when the image cargo is loaded, and initiates navigation to MVVMSecondViewActivity either via com.grarcht.shuttle.framework.Shuttle or directly through an android.content.Intent to demonstrate the crash scenario.

Link copied to clipboard

The entry point activity for the MVVM with Compose demo. Sets up the Compose content via MVVMFirstView and releases view resources when the activity is destroyed.

Link copied to clipboard
class MVVMSecondView(context: Context, viewModel: SecondViewModel, shuttle: Shuttle)

The Composable view for the second screen in the MVVM with Compose demo. Retrieves cargo from the com.grarcht.shuttle.framework.Shuttle warehouse using the cargo ID extracted from the saved instance state or intent extras, and displays the resulting image or an error state.

Link copied to clipboard

The destination activity for the second screen in the MVVM with Compose demo. Receives cargo from the first screen and sets up the Compose content via MVVMSecondView. Instance state is preserved through Shuttle on configuration change.