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

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