Pdf Ui Fragment Builder
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
open fun fromDataProvider(@NonNull context: Context, @NonNull dataProviders: Array<DataProvider>): PdfUiFragmentBuilder
Creates a new fragment builder with document being loaded from data provider.
Link copied to clipboard
open fun fromDocumentDescriptor(@NonNull context: Context, @NonNull documentDescriptor: Array<DocumentDescriptor>): PdfUiFragmentBuilder
Creates a new fragment builder with document describe by DocumentDescriptor.
Link copied to clipboard
open fun fromImageProvider(@NonNull context: Context, @NonNull dataProvider: DataProvider): PdfUiFragmentBuilder
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
Sets a custom fragment tag to be used with the internal PdfFragment.
Link copied to clipboard
Sets index of the document that should be visible after opening the fragment.