DownloadProgressFragment

A fragment for retaining a DownloadJob and showing its progress. Create the fragment via its constructor and call setJob. This is a retained fragment and can't be used as nested fragment.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open var job: DownloadJob
The download job being tracked and displayed by this fragment.

Functions

Link copied to clipboard
open fun getDialog(): Dialog
Returns the ProgressDialog that is used by this fragment.
Link copied to clipboard
open fun onCancel(dialog: DialogInterface)
Called when the dialog is cancelled by the user.
Link copied to clipboard
open fun onCreate(@Nullable savedInstanceState: Bundle)
Called when the fragment is first created.
Link copied to clipboard
fun onCreateDialog(savedInstanceState: Bundle): Dialog
Creates and returns the download progress dialog.
Link copied to clipboard
open fun onDestroyView()
Called when the view hierarchy associated with the fragment is being removed.
Link copied to clipboard
Sets a DialogInterface.OnCancelListener that will be informed when the progress dialog was cancelled by the user.