SimonSimCity / Xamarin-CrossDownloadManager

A cross platform download manager for Xamarin
MIT License
149 stars 68 forks source link

How to know Download is completed ? #119

Closed Nagendra574 closed 5 years ago

Nagendra574 commented 5 years ago

please let me know How can I recognize the download file is completely downloaded or not. Is there any event is a fire. I am using Xamarin forms with MVVM

Thanks in advance.

SimonSimCity commented 5 years ago

A look into the sample implementation (https://github.com/SimonSimCity/Xamarin-CrossDownloadManager/tree/develop/Sample) should give you the hint how to do it.

You only need to wait for the status of the file to switch to completed (https://github.com/SimonSimCity/Xamarin-CrossDownloadManager/blob/develop/Sample/Droid/MainActivity.cs#L102)