download

open override fun download(id: String, url: String): Flow<DownloadState>(source)

Starts an NSURLSession download and emits model download progress.

Return

Download progress, completion, or error state stream.

Author

Dmitriy Moroz

Parameters

id

Local model identifier that also names the destination directory.

url

Remote model archive URL.