java.lang.Object | |
↳ | com.pspdfkit.instant.ui.InstantPdfActivityIntentBuilder |
Builder used for creating an intent for starting InstantPdfActivity
. Allows setting the
document and all of the necessary configuration.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
InstantPdfActivityIntentBuilder |
activityClass(KClass<? extends PdfActivity> activityClass)
Sets a custom
activity class used for document display. | ||||||||||
InstantPdfActivityIntentBuilder |
activityClass(Class<? extends PdfActivity> activityClass)
Sets a custom
activity class used for document display. | ||||||||||
Intent |
build()
Builds
Intent with the values provided in the InstantPdfActivityIntentBuilder . | ||||||||||
InstantPdfActivityIntentBuilder |
configuration(PdfActivityConfiguration configuration)
Sets
PdfActivityConfiguration to be set on the target InstantPdfActivity in
which the document(s) will be displayed. | ||||||||||
static InstantPdfActivityIntentBuilder |
fromInstantDocument(Context context, String instantServerUrl, String jwt)
Creates builder for
InstantPdfActivity intent. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Sets a custom activity
class used for document display. The activity
must
extend InstantPdfActivity
and must be registered in the AndroidManifest.xml
.
If null
is passed, the default InstantPdfActivity
will be used for document
display.
activityClass | Custom InstantPdfActivity subclass, or null for the
default activity to be used. |
---|
InstantPdfActivityIntentBuilder
with set activity subclass.
Sets a custom activity
class used for document display. The activity
must
extend InstantPdfActivity
and must be registered in the AndroidManifest.xml
.
If null
is passed, the default InstantPdfActivity
will be used for document
display.
activityClass | Custom InstantPdfActivity subclass, or null for the
default activity to be used. |
---|
InstantPdfActivityIntentBuilder
with set activity subclass.
Builds Intent
with the values provided in the InstantPdfActivityIntentBuilder
.
instance
.
Sets PdfActivityConfiguration
to be set on the target InstantPdfActivity
in
which the document(s) will be displayed. If null
the default configuration will be
set.
configuration | Activity configuration to be set on the target activity. |
---|
InstantPdfActivityIntentBuilder
with set activity configuration.
Creates builder for InstantPdfActivity
intent.
context | Calling context |
---|---|
instantServerUrl | Url of the Instant server - used to initialize InstantClient . |
jwt | JWT used to authenticate access to the document. |