class DownloadFragment : Fragment
Fragment that encapsulates the state of downloading a file.
TODO Actually handle the case where download completed when the activity is in the background.
DownloadFragment()
Fragment that encapsulates the state of downloading a file. |
var downloadReference: Long |
fun onCreate(savedInstanceState: Bundle?): Unit |
|
fun onSaveInstanceState(outState: Bundle): Unit |
suspend fun download(activity: Activity, downloadUri: Uri): URI
Download the resource at downloadUri and return a URI of the local location fun download(activity: Activity, downloadUri: Uri, callback: (Maybe<URI>) -> Unit): Unit
Async version of download that has a callback instead of being a suspend function. |
|
fun newInstance(continuation: Continuation<URI>): DownloadFragment |