IosDownloadableModelFileDownloader

internal class IosDownloadableModelFileDownloader(val fileProviderDescriptor: FileProviderDescriptor, val networkUsageRepository: NetworkUsageRepository) : DownloadableModelFileDownloader(source)

Downloads local model archives into iOS app storage and reports received bytes.

Author

Dmitriy Moroz

Parameters

fileProviderDescriptor

Provides the app-private local model directory path.

networkUsageRepository

Persists downloaded byte deltas for network usage statistics.

Constructors

Link copied to clipboard
constructor(fileProviderDescriptor: FileProviderDescriptor, networkUsageRepository: NetworkUsageRepository)

Types

Link copied to clipboard
private object Companion

Download file names used while moving the completed NSURLSession temporary file into place.

Properties

Link copied to clipboard

Provides the app-private local model directory path.

Link copied to clipboard

Persists downloaded byte deltas for network usage statistics.

Functions

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

Starts an NSURLSession download and emits model download progress.