Hi, thanks for reply. I want to show a list of all the downloading tasks. Typically, I need the progress ratio of all the tasks. And probably, I need the local URL of all the downloaded files. If there is an API for this, I will save my time from tracking all the different states.
I just found out there is an API from
URLSession which could get all the running tasks, but it's asynchronously. That's not good if I want update a GUI list, while maybe I will use it.
func getAllTasks(completionHandler: @escaping ([URLSessionTask]) -> Void)