SecondImageState

sealed class SecondImageState

Represents the loading state of the image on the second screen in the MVVM with Process Death demo. The state machine transitions from Loading to Success, LostToProcessDeath, or Error depending on whether Shuttle cargo pickup succeeds or the cargo was not preserved.

Inheritors

Types

Link copied to clipboard
data class Error(val message: String) : SecondImageState

An error occurred while retrieving the image.

Link copied to clipboard

The image is being retrieved from the Shuttle warehouse or in-memory cache.

Link copied to clipboard

The cargo ID was empty, meaning the process was killed and the data was not preserved by Shuttle. This demonstrates the data-loss scenario that Shuttle is designed to prevent.

Link copied to clipboard
data class Success(val imageModel: ImageModel) : SecondImageState

The image was retrieved successfully.