SecondView
The Composable view for the second screen in the MVVM with Process Death demo. Loads cargo either from the com.grarcht.shuttle.framework.Shuttle warehouse or from an in-memory cache depending on how the screen was launched, and displays the image or an appropriate error state. A "Kill Process" button allows the user to simulate process death to observe Shuttle's recovery behavior.
Parameters
the context used to access resources and string values.
the view model that manages image loading and state.
the Shuttle instance used for cargo pickup and instance state bundling.
Functions
Bundles the currently retrieved image model into outState using Shuttle so it can be restored safely after a configuration change.
Renders the second screen, extracting arguments from savedInstanceState or extras to determine whether to load cargo from Shuttle or from the in-memory cache.