ModelReadiness

sealed interface ModelReadiness(source)

Model readiness state for download/lifecycle UX.

Inheritors

Types

Link copied to clipboard

Model is ready for inference.

Link copied to clipboard
data object Checking : ModelReadiness

Initial status check in progress.

Link copied to clipboard
data class Downloading(val bytesDownloaded: Long, val totalBytes: Long) : ModelReadiness

Model is downloading. totalBytes of 0 means indeterminate progress.

Link copied to clipboard
data class Unavailable(val reason: String?) : ModelReadiness

Model is not available on this device.