public class

InstantPdfActivityIntentBuilder

extends Object
java.lang.Object
   ↳ com.pspdfkit.instant.ui.InstantPdfActivityIntentBuilder

Class Overview

Builder used for creating an intent for starting InstantPdfActivity. Allows setting the document and all of the necessary configuration.

Summary

Public Methods
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
From class java.lang.Object

Public Methods

public InstantPdfActivityIntentBuilder activityClass (Class<? extends PdfActivity> activityClass)

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.

Parameters
activityClass Custom InstantPdfActivity subclass, or null for the default activity to be used.
Returns

public Intent build ()

Builds Intent with the values provided in the InstantPdfActivityIntentBuilder.

Returns
  • An intent used for starting the instance.

public InstantPdfActivityIntentBuilder configuration (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

public static InstantPdfActivityIntentBuilder fromInstantDocument (Context context, String instantServerUrl, String jwt)

Creates builder for InstantPdfActivity intent.

Parameters
context Calling context
instantServerUrl Url of the Instant server - used to initialize InstantClient.
jwt JWT used to authenticate access to the document.