https://kotlinlang.org logo
Title
t

tieskedh

01/04/2021, 10:22 AM
Don't know if this is the correct place to ask, but is there a download-manager for common Kotlin?
a

andylamax

01/05/2021, 4:43 PM
and what does this download-manager for common kotlin do?
t

tieskedh

01/06/2021, 9:19 AM
I don't think there is such an extended DownloadManager, but maybe there is a library that has potential to have features like this : some basic features: • retry on failure • Wait untill connected • Return all downloads • Pause the DownloadManager DownloadTask: • add listener for finished • Set priority for a particular download • Allow to cancel downloads • get download-percentage based upon file-size (if given) • Resume download Possibly with parallelism: • Max of total parallel sessions. • Max parallel sessions to a server. • Delay between requests for a particular server. bonus: • Allow to download (particular tasks) only with WIFI/LAN possibly with storage: • Maximum storageSize • retrieve from disk or download possibly as some cache: • Invalidate after particular time • manual invalidation Not everything will probably be needed for every application, but this is (I think) what most applications that are downloading bigger files are duplicating.
a

andylamax

01/06/2021, 10:48 PM
Then I don't think there is such a tool for kotlin multiplatform yet