IosModelDownloadDelegate
constructor(destinationPath: String, onProgress: (Int) -> Unit, onBytesReceived: (Long) -> Unit, onComplete: (Result<Unit>) -> Unit)(source)
Parameters
destinationPath
Temporary destination where NSURLSession output is moved before finalization.
onProgress
Emits integer percent progress when iOS reports total expected byte count.
onBytesReceived
Emits every positive byte delta for traffic statistics.
onComplete
Completes the callbackFlow with success or a user-visible download error.