SecondViewModel

class SecondViewModel @Inject constructor(shuttle: Shuttle) : ViewModel

Processes MVI intents for the second view and emits the corresponding UI state for cargo pickup via CargoPickupIntent.

Parameters

shuttle

the Shuttle instance used for cargo pickup and instance state bundling.

Constructors

Link copied to clipboard
@Inject
constructor(shuttle: Shuttle)

Properties

Link copied to clipboard
val uiState: StateFlow<CargoPickupUiState>

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard

Bundles the currently retrieved image model into outState using Shuttle so it can be restored safely after a configuration change.

Link copied to clipboard
Link copied to clipboard

Processes the given intent and updates uiState with the cargo pickup result. This is the single entry point for all actions on the second view.