toggle menu
pspdfkit
PSPDFKit
switch theme
search in API
pspdfkit
/
com.pspdfkit.document.download.source
/
AssetDownloadSource
Asset
Download
Source
open
class
AssetDownloadSource
:
DownloadSource
A source for copying a PDF document from the app assets to the filesystem.
Members
Constructors
Asset
Download
Source
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
asset
Path
Link copied to clipboard
@
NonNull
@get:
NonNull
val
assetPath
:
String
Functions
get
Length
Link copied to clipboard
open
fun
getLength
(
)
:
Long
Returns the total length of the download.
open
Link copied to clipboard
open
fun
open
(
)
:
InputStream
Opens an
InputStream
for downloading the document.
to
String
Link copied to clipboard
open
fun
toString
(
)
:
String