show Document
open fun showDocument(@NonNull context: Context, @NonNull documentUri: Uri, @Nullable configuration: PdfActivityConfiguration)
Opens a new PdfActivity displaying a passed document. If the document is password protected PSPDFKit will prompt the user to enter the password.
Parameters
context
Calling context
document Uri
android.net.Uri pointing to the document file
configuration
Desired activity configuration generated with
open fun showDocument(@NonNull context: Context, @NonNull documentUri: Uri, @Nullable password: String, @Nullable configuration: PdfActivityConfiguration)
Opens a new PdfActivity displaying a passed document. If the document is password protected PSPDFKit will prompt the user to enter the password.
Parameters
context
Calling context.
document Uri
Uri pointing to the document file.
password
Document password, can be null
.
configuration
Desired activity configuration generated with .