| java.lang.Object | |
| ↳ | com.pspdfkit.configuration.activity.PdfActivityConfiguration |
Configuration for PDF display in a separate activity. Use build() to create
an instance of this class.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| class | PdfActivityConfiguration.Builder | Builder used to construct a PdfActivityConfiguration instance. |
|||||||||
| @interface | PdfActivityConfiguration.SearchType | Type of search. | |||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | NO_THEME | Represents the default resource id for the theme, meaning the theme is not set. | |||||||||
| int | SEARCH_INLINE | Search type: inline. | |||||||||
| int | SEARCH_MODULAR | Search type: modular. | |||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| public static final EnumSet<AnnotationType> | DEFAULT_LISTED_ANNOTATION_TYPES | Annotation types listed by default. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| PdfActivityConfiguration() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract String |
getActivityTitle()
Returns the title set to the target activity.
| ||||||||||
| abstract PdfConfiguration |
getConfiguration()
Returns configuration for the document.
| ||||||||||
| abstract int |
getDarkTheme()
Returns theme resource used to override dark theme of the launched activity.
| ||||||||||
| abstract int |
getLayout()
Returns the id for the layout used by the launched activity, defaults to
pspdf__pdf_activity.. | ||||||||||
| abstract EnumSet<AnnotationType> |
getListedAnnotationTypes()
Returns a set of annotation types to be displayed in the annotation list.
| ||||||||||
| abstract SearchConfiguration |
getSearchConfiguration()
Returns the search configuration applied to the search views.
| ||||||||||
| abstract int |
getSearchType()
Returns the search type set on the activity.
| ||||||||||
| abstract EnumSet<SettingsMenuItemType> |
getSettingsMenuItemShown()
Returns items shown in the settings menu.
| ||||||||||
| abstract TabBarHidingMode |
getTabBarHidingMode()
Returns the tab bar hiding mode set on the activity.
| ||||||||||
| abstract int |
getTheme()
Returns theme resource used to override default theme of the launched activity.
| ||||||||||
| abstract ThumbnailBarMode |
getThumbnailBarMode()
Returns the thumbnail bar mode set on the activity.
| ||||||||||
| abstract UserInterfaceViewMode |
getUserInterfaceViewMode()
Returns the user interface mode set on the activity.
| ||||||||||
| abstract boolean |
hideUserInterfaceWhenCreatingAnnotations()
Returns whether user interface controls should be hidden when annotation creation toolbar is in vertical position
(left/right).
| ||||||||||
| abstract boolean |
isAnnotationListEnabled()
Indicates whether the list of annotations is enabled or not.
| ||||||||||
| abstract boolean |
isAnnotationNoteHintingEnabled()
Indicates whether to show visual indicators for annotations that have annotation notes.
| ||||||||||
| abstract boolean |
isBookmarkEditingEnabled()
Indicates whether the bookmarks can be edited or not.
| ||||||||||
| abstract boolean |
isBookmarkListEnabled()
Indicates whether the list of bookmarks is enabled or not.
| ||||||||||
| abstract boolean |
isDocumentEditorEnabled()
Indicates whether the document editor is enabled or not.
| ||||||||||
| abstract boolean |
isDocumentInfoViewEnabled()
Indicates whether the document info view is enabled or not.
| ||||||||||
| abstract boolean |
isImmersiveMode()
Indicates whether the immersive mode is activated or not.
| ||||||||||
| abstract boolean |
isOutlineEnabled()
Indicates whether the outline is enabled or not.
| ||||||||||
| abstract boolean |
isPrintingEnabled()
Indicates whether the printing support is enabled or not.
| ||||||||||
| abstract boolean |
isRedactionUiEnabled()
Indicates whether we show the UI to apply redactions when there are
RedactionAnnotation
in the document. | ||||||||||
| abstract boolean |
isSearchEnabled()
Indicates whether the search is enabled or not.
| ||||||||||
| abstract boolean |
isSettingsItemEnabled()
Indicates whether the settings menu item is shown or not.
| ||||||||||
| abstract boolean |
isShareEnabled()
This method is deprecated.
Use
getEnabledShareFeatures() to get enabled share features.
| ||||||||||
| abstract boolean |
isShowDocumentTitleOverlayEnabled()
Indicates whether the document title overlay is set to show or not.
| ||||||||||
| abstract boolean |
isShowNavigationButtonsEnabled()
Indicates whether the navigation buttons are set to show or not.
| ||||||||||
| abstract boolean |
isShowPageLabels()
Indicates whether the page labels are set to show or not.
| ||||||||||
| abstract boolean |
isShowPageNumberOverlay()
Indicates whether the page number overlay is set to show or not.
| ||||||||||
| abstract boolean |
isThumbnailGridEnabled()
Indicates whether the thumbnail grid is enabled or not.
| ||||||||||
| abstract boolean |
isVolumeButtonsNavigationEnabled()
Indicates whether to use volume buttons for navigation between document pages.
| ||||||||||
| abstract int |
page()
Returns the 0-indexed page number at which the document will be initially displayed.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
| |||||||||||
Represents the default resource id for the theme, meaning the theme is not set.
Search type: inline.
Search type: modular.
Annotation types listed by default.
Returns the title set to the target activity.
Returns configuration for the document.
Returns theme resource used to override dark theme of the launched activity.
Returns the id for the layout used by the launched activity, defaults to pspdf__pdf_activity..
Returns a set of annotation types to be displayed in the annotation list.
Returns the search configuration applied to the search views.
Returns the search type set on the activity.
SEARCH_INLINE or SEARCH_MODULAR.
Returns items shown in the settings menu. If none are shown, settings menu icon is not shown either.
Returns the tab bar hiding mode set on the activity.
Returns theme resource used to override default theme of the launched activity.
Returns the thumbnail bar mode set on the activity.
Returns the user interface mode set on the activity.
Returns whether user interface controls should be hidden when annotation creation toolbar is in vertical position (left/right).
true when user interface should be hidden when showing vertical annotation creation toolbar.
Indicates whether the list of annotations is enabled or not.
true if annotation list is enabled, false otherwise.
Indicates whether to show visual indicators for annotations that have annotation notes.
true when annotation notes hints are enabled, false otherwise.
Indicates whether the bookmarks can be edited or not.
true if bookmark list allows editing of bookmarks, false otherwise.
Indicates whether the list of bookmarks is enabled or not.
true if bookmark list is enabled, false otherwise.
Indicates whether the document editor is enabled or not.
true if document editor is enabled, false otherwise.
Indicates whether the document info view is enabled or not.
true if document info view is enabled, false otherwise.
Indicates whether the immersive mode is activated or not.
true if immersive mode activated, false otherwise.
Indicates whether the outline is enabled or not.
true if outline enabled, false otherwise.
Indicates whether the printing support is enabled or not. Enabled by default.
true if printing is enabled, false otherwise.
Indicates whether we show the UI to apply redactions when there are RedactionAnnotation
in the document.
true when the redaction UI should be displayed when false if it should not be displayed.
Indicates whether the search is enabled or not.
true if search is enabled, false otherwise.
Indicates whether the settings menu item is shown or not.
true if settings menu item is enabled, false otherwise.
This method is deprecated.
Use getEnabledShareFeatures() to get enabled share features.
Indicates whether the sharing is enabled or not.
true if sharing is enabled, false otherwise.Indicates whether the document title overlay is set to show or not.
true if the document title overlay is set to show, false otherwise.
Indicates whether the navigation buttons are set to show or not.
true if the navigation buttons are set to show, false otherwise.
Indicates whether the page labels are set to show or not.
true if labels are enabled, false otherwise.
Indicates whether the page number overlay is set to show or not.
true if the page number overlay is set to show, false otherwise.
Indicates whether the thumbnail grid is enabled or not.
true if thumbnail grid is enabled, false otherwise.
Indicates whether to use volume buttons for navigation between document pages.
true when volume buttons will be used for navigation between document pages, false
otherwise.
Returns the 0-indexed page number at which the document will be initially displayed.