Cancelling Downloads Initiated By TransferManager::DownloadToDirectory #1726
-
Direct quote from comments of the TransferManager class:
However, DownloadToDirectory function does not return a TransferHandle, which is needed to Cancel downloads. In the comments for this function, it states:
That's great, I can get TransferHandle via callbacks... however, the callback's TransferHandle is pointing to a const, and the Cancel function isn't const, so I can't Cancel the download from the callback. Maybe Im missing an alternative way to Cancel the download, but I can't find it. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I don't think there is a way to cancel the download and it doesn't look like it was designed with a way to cancel the download. If you are looking for something like this you could use |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
I don't think there is a way to cancel the download and it doesn't look like it was designed with a way to cancel the download. If you are looking for something like this you could use
DownloadFile
and manage the downloads individually.