IRequest

interface IRequest

Contract of a download request that can be submitted to the download manager.

Inheritors

Types

Link copied to clipboard
annotation class Visibility
The list of possible visibility states.

Functions

Link copied to clipboard
abstract fun getDescription(): String
Gets the description of this download, to be displayed in notifications (if enabled)
Link copied to clipboard
abstract fun getEstimatedSize(): Long
Gets the estimated total size of the download as number of bytes.
Link copied to clipboard
abstract fun getHeaders(): Map<String, String>
Gets the list of headers to the send in HTTP request.
Link copied to clipboard
abstract fun getLocalUri(): Uri
Gets the local destination for the downloaded file.
Link copied to clipboard
abstract fun getMimeType(): String
Gets the MIME content type of this download.
Link copied to clipboard
Specifies whether a system notification is posted by the download manager while this download is running or when it is completed.
Link copied to clipboard
abstract fun getRemoteUri(): Uri
Gets the URL to the remote file.
Link copied to clipboard
abstract fun getTitle(): String
Gets the title of this download, to be displayed in notifications (if enabled).
Link copied to clipboard
Specifies whether this download may proceed over a bluetooth network connection.
Link copied to clipboard
Specifies whether this download may proceed over a metered network connection.
Link copied to clipboard
Specifies whether this download may proceed over a mobile network connection.
Link copied to clipboard
Specifies whether this download may proceed over a roaming connection.
Link copied to clipboard
abstract fun isAllowedOverWifi(): Boolean
Specifies whether this download may proceed over a WIFI network connection.
Link copied to clipboard
Specifies whether the file to be downloaded should be marked as scannable by MediaScanner.
Link copied to clipboard
Gets whether this download should be displayed in the system's Downloads UI.