Class InstantPdfActivityIntentBuilder
-
- All Implemented Interfaces:
public class InstantPdfActivityIntentBuilder
Builder used for creating an intent for starting InstantPdfActivity. Allows setting the document and all of the necessary configuration.
-
-
Method Summary
Modifier and Type Method Description static InstantPdfActivityIntentBuilder
fromInstantDocument(@NonNull() Context context, @NonNull() String instantServerUrl, @NonNull() String jwt)
Creates builder for InstantPdfActivity intent. InstantPdfActivityIntentBuilder
configuration(@Nullable() PdfActivityConfiguration configuration)
Sets PdfActivityConfiguration to be set on the target InstantPdfActivity in which the document(s) will be displayed. InstantPdfActivityIntentBuilder
activityClass(@Nullable() Class<out PdfActivity> activityClass)
Sets a custom activity
class used for document display.InstantPdfActivityIntentBuilder
activityClass(@Nullable() KClass<out PdfActivity> activityClass)
Sets a custom activity
class used for document display.Intent
build()
Builds Intent with the values provided in the . -
-
Method Detail
-
fromInstantDocument
@NonNull() static InstantPdfActivityIntentBuilder fromInstantDocument(@NonNull() Context context, @NonNull() String instantServerUrl, @NonNull() String jwt)
Creates builder for InstantPdfActivity intent.
- Parameters:
context
- Calling contextinstantServerUrl
- Url of the Instant Server (PSPDFKit Document Engine) - used to initialize InstantClient.jwt
- JWT used to authenticate access to the document.
-
configuration
InstantPdfActivityIntentBuilder configuration(@Nullable() PdfActivityConfiguration configuration)
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.- Parameters:
configuration
- Activity configuration to be set on the target activity.- Returns:
Builder for InstantPdfActivityIntentBuilder with set activity configuration.
-
activityClass
InstantPdfActivityIntentBuilder activityClass(@Nullable() Class<out PdfActivity> activityClass)
Sets a custom
activity
class used for document display. Theactivity
must extend InstantPdfActivity and must be registered in theAndroidManifest.xml
. Ifnull
is passed, the default InstantPdfActivity will be used for document display.- Parameters:
activityClass
- Custom InstantPdfActivity subclass, ornull
for the default activity to be used.- Returns:
Builder for InstantPdfActivityIntentBuilder with set activity subclass.
-
activityClass
InstantPdfActivityIntentBuilder activityClass(@Nullable() KClass<out PdfActivity> activityClass)
Sets a custom
activity
class used for document display. Theactivity
must extend InstantPdfActivity and must be registered in theAndroidManifest.xml
. Ifnull
is passed, the default InstantPdfActivity will be used for document display.- Parameters:
activityClass
- Custom InstantPdfActivity subclass, ornull
for the default activity to be used.- Returns:
Builder for InstantPdfActivityIntentBuilder with set activity subclass.
-
-
-
-