Class AssetAnnotation

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getAssetName() Returns the name of the asset to which this annotation is pointing to, or empty string.
      Uri getFileUri(@NonNull() Context context, @NonNull() PdfDocument pdfDocument) Extracts asset into a file and returns the file Uri.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getAssetName

        @Nullable() String getAssetName()

        Returns the name of the asset to which this annotation is pointing to, or empty string.

        Returns:

        Name of the asset.

      • getFileUri

        @NonNull() Uri getFileUri(@NonNull() Context context, @NonNull() PdfDocument pdfDocument)

        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.

        Parameters:
        context - Context of the calling component, used to access the filesystem.
        pdfDocument - Document containing the asset.