Download

abstract class Download

How a download of the model is going. More states may be added.

Inheritors

Types

Link copied to clipboard

The model is on the device and can answer.

Link copied to clipboard
data class Failed(val cause: Throwable) : AIOnDeviceModel.Download

The download failed.

Link copied to clipboard
data class Progress(val bytesDownloaded: Long) : AIOnDeviceModel.Download

Part of the model has arrived.

Link copied to clipboard
data class Started(val bytesToDownload: Long) : AIOnDeviceModel.Download

The download started.