majidgolshadi / Android-Download-Manager-Pro

Android/Java download manager library help you to download files in parallel mechanism in some chunks.
MIT License
1.61k stars 317 forks source link

How to know in which state downloader now ? #8

Closed kirill-kostenetskyi closed 9 years ago

kirill-kostenetskyi commented 9 years ago

Please, help me to understandm how can i know in which state my task : pause, downlaoded or something else. After i write ReportStructure report = dm.singleDownloadStatus(taskToken); how can i get information from that ? Thank you

majidgolshadi commented 9 years ago

Hi In singleDownloadStatus method you got a ReportStructure object that contain state property. As I mention in readme you can find your task state

kirill-kostenetskyi commented 9 years ago

i found how to get states. i added getState method to ReportStructure class , and when i need to current state of downlaod, i just call it. thank you