CargoPickupUiState

data class CargoPickupUiState(val isLoading: Boolean = true, val imageModel: ImageModel? = null, val error: Throwable? = null)

Holds the UI state for the second view during cargo pickup. The state reflects whether the cargo retrieval is in progress, has completed successfully with an image model, or has failed with an error.

Constructors

Link copied to clipboard
constructor(isLoading: Boolean = true, imageModel: ImageModel? = null, error: Throwable? = null)

Properties

Link copied to clipboard

the throwable captured when pickup fails, or null on success.

Link copied to clipboard
val imageModel: ImageModel?

the retrieved image data, or null if pickup has not completed.

Link copied to clipboard

true while cargo retrieval is in progress.