Asset Data Provider
open class AssetDataProvider(val assetName: String) : InputStreamDataProvider, Parcelable, UriDataProvider
Data provider for opening PDF documents directly from the app's assets.
Default constructor taking the assetName
of a document. The filename/path needs to be relative to the asset directory.
Parameters
asset Name
Filename of the asset in the application assets folder.
Functions
Link copied to clipboard
Link copied to clipboard
Return the actual file size of the PDF document which is provided by this data provider. If the data provider can't determine the correct file size (e.g. in case of an error) this method has to return FILE_SIZE_UNKNOWN.
Link copied to clipboard