ContentResolverDownloadSource

A source for downloading a document from a ContentProvider.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context, @NonNull uri: Uri)
Constructor taking a uri pointing to a content provider.

Properties

Link copied to clipboard
The content provider URI pointing to the PDF document.

Functions

Link copied to clipboard
open fun getLength(): Long
Returns the total length of the download.
Link copied to clipboard
open fun open(): InputStream
Opens an InputStream for downloading the document.
Link copied to clipboard
open fun toString(): String
Returns a string representation of this download source, including the content URI.