AssetDownloadSource

A source for copying a PDF document from the app assets to the filesystem.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context, @NonNull assetPath: String)
Constructor taking an assetPath pointing to a PDF document inside the app's assets.

Properties

Link copied to clipboard
The relative path to the PDF document within the app's assets directory.

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 asset path as a URI.