AbstractDownloadRequest

Defines the contract of an entity that can be parceled and persisted into a local database with information related to download request.

Constructors

Link copied to clipboard
constructor()

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
open fun getIdentityCondition(): LogicalCondition<? extends Expression<Long>, ?>
open fun getIdentityCondition(key: Long): LogicalCondition<? extends Expression<Long>, ?>
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
open fun getModifiedTime(): Long
Gets the date and time when the request was modified as number of milliseconds since January 1, 1970, 00:00:00 GMT.
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.
Link copied to clipboard
open fun onBeforeInsert()
Sets the create time before the inserting the entity into the database table.