PdfUiFragmentBuilder

class PdfUiFragmentBuilder : BasePdfUiBuilder<T>

Builder used for creating an PdfUiFragment. Allows setting the document and all of the necessary configuration such as document sources, passwords, etc.

Functions

Link copied to clipboard
Builds PdfUiFragment with the values provided in the PdfUiFragmentBuilder.
Link copied to clipboard
Sets PdfActivityConfiguration to be set on the target PdfUiFragment in which the document(s) will be displayed.
Link copied to clipboard
Sets list of content signatures for when the opened document is merged from several documents or for a single document.
Link copied to clipboard
Creates a new fragment builder with no document, this is useful if you provide custom UI inside your PdfUiFragment subclass to open new documents.
Link copied to clipboard
Sets a custom fragment class used for document display.
Link copied to clipboard
Creates a new fragment builder with document being loaded from data provider.
Link copied to clipboard
Creates a new fragment builder with document describe by DocumentDescriptor.
Link copied to clipboard
Creates a new fragment builder with an image document being loaded from data provider.
Link copied to clipboard
Creates a new fragment builder with image document being loaded from Uri.
Link copied to clipboard
open fun fromUri(@NonNull context: Context, @NonNull uris: Array<Uri>): PdfUiFragmentBuilder
Creates a new fragment builder with document being loaded from URI.
Link copied to clipboard
Sets list of passwords for when the opened document is merged from several documents or for a single document.
Link copied to clipboard
Sets a custom fragment tag to be used with the internal PdfFragment.
Link copied to clipboard
open fun visibleDocument(visibleDocumentIndex: Int): PdfUiFragmentBuilder
Sets index of the document that should be visible after opening the fragment.