Hi everyone,
I present to you my RSAsyncDownloader.
This will download any file very easy and asynchronously from a given URL.
3 Events are raised:
Kind regards,
Tomas
I present to you my RSAsyncDownloader.
This will download any file very easy and asynchronously from a given URL.
B4X:
Dim AsyncDownloader As RSAsyncDownloader
AsyncDownloader.Initialize("AsyncDownloader")
AsyncDownloader.FileName = "FileName.pdf"
AsyncDownloader.Directory = File.DirDefaultExternal
AsyncDownloader.Download("Your url here.")
3 Events are raised:
B4X:
Private Sub AsyncDownloader_Started
'The download has started.
End Sub
Private Sub AsyncDownloader_Update (Progress As Int)
'Monitor the progress here.
End Sub
Private Sub AsyncDownloader_Finished (Result As String)
'The download has finished.
End Sub
Kind regards,
Tomas