DownloadSource

interface DownloadSource

A remote PDF resource that can be downloaded by the DownloadJob. Implementation could be a file served from a content provider, or a file on the web.

Inheritors

Properties

Link copied to clipboard
Constant value used when the total size of a download is not known.

Functions

Link copied to clipboard
abstract fun getLength(): Long
Returns the total length of the download.
Link copied to clipboard
abstract fun open(): InputStream
Opens an InputStream for downloading the document.