DownloadableModelRepository

Defines the DownloadableModelRepository contract for the SDAI domain layer.

Author

Dmitriy Moroz

Functions

Link copied to clipboard
abstract suspend fun delete(id: String)

Performs the SDAI side effect handled by delete.

Link copied to clipboard
abstract fun download(id: String, url: String): Flow<DownloadState>

Executes the download step in the SDAI domain layer.

Link copied to clipboard
abstract suspend fun getAllMediaPipe(): List<LocalAiModel>

Loads SDAI data through getAllMediaPipe.

Link copied to clipboard
abstract suspend fun getAllOnnx(): List<LocalAiModel>

Loads SDAI data through getAllOnnx.

Link copied to clipboard
abstract fun observeAllOnnx(): Flow<List<LocalAiModel>>

Loads SDAI data through observeAllOnnx.