Pdf Activity Intent Builder
Builder used for creating an intent for starting PdfActivity. Allows setting the document and all of the necessary configuration such as document sources, passwords, etc.
Functions
Link copied to clipboard
Sets a custom
activity
class used for document display.Link copied to clipboard
Sets PdfActivityConfiguration to be set on the target PdfActivity 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 intent builder with no document, this is useful if you provide custom UI inside your PdfActivity subclass to open new documents.
Link copied to clipboard
open fun fromDataProvider(@NonNull context: Context, @NonNull dataProviders: Array<DataProvider>): PdfActivityIntentBuilder
Creates a new intent builder with document being loaded from data provider.
Link copied to clipboard
open fun fromDocumentDescriptor(@NonNull context: Context, @NonNull documentDescriptor: Array<DocumentDescriptor>): PdfActivityIntentBuilder
Creates a new intent builder with document describe by DocumentDescriptor.
Link copied to clipboard
open fun fromImageProvider(@NonNull context: Context, @NonNull dataProvider: DataProvider): PdfActivityIntentBuilder
Creates a new intent builder with an image document being loaded from data provider.
Link copied to clipboard
Creates a new intent builder with image document being loaded from Uri.
Link copied to clipboard
Sets index of the document that should be visible after opening the activity.