Class InstantPdfActivityIntentBuilder
-
- All Implemented Interfaces:
public final class InstantPdfActivityIntentBuilder
Builder used for creating an intent for starting InstantPdfActivity. Allows setting the document and all of the necessary configuration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
InstantPdfActivityIntentBuilder.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static String
PARAM_INSTANT_DOCUMENT_SOURCE
public final static InstantPdfActivityIntentBuilder.Companion
Companion
-
Method Summary
Modifier and Type Method Description final InstantPdfActivityIntentBuilder
configuration(PdfActivityConfiguration configuration)
Sets PdfActivityConfiguration to be set on the target InstantPdfActivity in which the document(s) will be displayed. final InstantPdfActivityIntentBuilder
activityClass(Class<out PdfActivity> activityClass)
Sets a custom activity
class used for document display.final InstantPdfActivityIntentBuilder
activityClass(KClass<out PdfActivity> activityClass)
Sets a custom activity
class used for document display.final Intent
build()
Builds Intent with the values provided in the [ ]. -
-
Method Detail
-
configuration
final 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:
Builder for InstantPdfActivityIntentBuilder with set activity configuration.
-
activityClass
final InstantPdfActivityIntentBuilder activityClass(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
final InstantPdfActivityIntentBuilder activityClass(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.
-
-
-
-