java.lang.Object | |
↳ | com.pspdfkit.configuration.activity.PdfActivityConfiguration |
Configuration for PDF display in a separate activity or PdfUiFragment
.
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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 |
isAnnotationListReorderingEnabled()
Indicates whether reordering annotations in the annotation list is enabled.
| ||||||||||
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 |
isDocumentInfoViewSeparated()
Indicates whether the document info view is a separate window, or displayed as a tab in the outline
| ||||||||||
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 |
isReaderViewEnabled()
Indicates whether we display the reader view and its action icon in the main toolbar.
| ||||||||||
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 |
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 |
isSignatureButtonPositionForcedInMainToolbar()
Indicates whether the signature button position is forced in the main toolbar 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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
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 reordering annotations in the annotation list is enabled.
true
if reordering annotations in the 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 document info view is a separate window, or displayed as a tab in the outline
true
if document info view is separate, 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 display the reader view and its action icon in the main toolbar.
true
when the reader view should be displayed, false
when it should
not be displayed.
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.
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.
Affects the PdfOutlineView
view and the PdfSearchViewModular
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 signature button position is forced in the main toolbar or not. The
button's visibility in the main toolbar defaults to false
when the license uses
Annotation Editing, as normally the annotation signature creation can be accessed via the
Annotation Creation Toolbar. For the special case where the license includes Electronic
Signatures without Annotation Editing, the signature button will be included in the main
toolbar rather than in the Annotation Creation Toolbar.
true
when the signature button position is forced in the main toolbar.
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.