FileProvider 拡張機能を実装しました。
class MyProviderExtension: NSFileProviderExtension {
override func startProvidingItem(at url: URL, completionHandler: ((_ error: Error?) -> Void)?) {
downloading file using URL and implemented download delegates
// Download Delegate
func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
**// How can I upload the download progress here.**
}
}
}
ダウンロード デリゲートで UI ハンドラーを取得して、ダウンロードの成功後に進行状況を更新し、セルのダウンロード ボタンを更新することができません。