FirstViewModel

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

Processes MVI intents for the first view and emits the corresponding UI state for image loading via CargoTransportIntent. Navigation decisions are emitted as one-shot NavigationEvents for the view to execute.

Parameters

shuttle

the Shuttle instance used for cargo cleanup.

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard

Functions

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

Cleans up all cargo delivered by Shuttle from the warehouse. Call this when the view is no longer needed.

Link copied to clipboard
Link copied to clipboard

Processes the given intent and updates uiState or emits a NavigationEvent as appropriate. This is the single entry point for all user and system actions on the first view.