java.lang.Object | |||
↳ | com.pspdfkit.annotations.Annotation | ||
↳ | com.pspdfkit.annotations.LinkAnnotation | ||
↳ | com.pspdfkit.annotations.AssetAnnotation |
![]()
|
![]()
|
Abstract subclass that contains an asset from a link.
[Expand]
Inherited Constants | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]()
|
[Expand]
Inherited Fields | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]()
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
getAssetName()
Returns the name of the asset to which this annotation is pointing to, or empty string.
| ||||||||||
Uri |
getFileUri(Context context, PdfDocument pdfDocument)
Extracts asset into a file and returns the file Uri.
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]()
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]()
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
Returns the name of the asset to which this annotation is pointing to, or empty string.
Extracts asset into a file and returns the file Uri. It's recommended that you perform this action asynchronously. Also, once the temporary file is extracted, you are required to perform the cleanup.
context | Context of the calling component, used to access the filesystem. |
---|---|
pdfDocument | Document containing the asset. |