Class SdkConfiguration
-
- All Implemented Interfaces:
public final class SdkConfiguration
Stores the configuration for the SDK.
-
-
Field Summary
Fields Modifier and Type Field Description private final PageScrollDirection
scrollDirection
private final Boolean
thumbnailGridEnabled
private final ThumbnailBarMode
thumbnailBarMode
private final Boolean
immersiveMode
private final Integer
selectedIndex
private final PageFitMode
pageFitMode
private final PageScrollMode
pageScrollMode
private final Float
startZoom
private final PageZoom
pageZoom
private final ScrollbarConfiguration
scrollbarConfiguration
-
Constructor Summary
Constructors Constructor Description SdkConfiguration(PageScrollDirection scrollDirection, Boolean thumbnailGridEnabled, ThumbnailBarMode thumbnailBarMode, Boolean immersiveMode, Integer selectedIndex, PageFitMode pageFitMode, PageScrollMode pageScrollMode, Float startZoom, PageZoom pageZoom, ScrollbarConfiguration scrollbarConfiguration)
-
Method Summary
Modifier and Type Method Description final PageScrollDirection
getScrollDirection()
Direction of the page scroll action. final Boolean
getThumbnailGridEnabled()
Whether the thumbnail grid is enabled. final ThumbnailBarMode
getThumbnailBarMode()
How the thumbnail bar is displayed. final Boolean
getImmersiveMode()
Whether the immersive mode is enabled. final Integer
getSelectedIndex()
Index of the first selected page. final PageFitMode
getPageFitMode()
How the page should fit the screen. final PageScrollMode
getPageScrollMode()
Page scrolling mode (Per page or continuous). final Float
getStartZoom()
Initial zoom level for the document. final PageZoom
getPageZoom()
Zoom level of the selected page. final ScrollbarConfiguration
getScrollbarConfiguration()
scrollbar configuration -
-
Constructor Detail
-
SdkConfiguration
SdkConfiguration(PageScrollDirection scrollDirection, Boolean thumbnailGridEnabled, ThumbnailBarMode thumbnailBarMode, Boolean immersiveMode, Integer selectedIndex, PageFitMode pageFitMode, PageScrollMode pageScrollMode, Float startZoom, PageZoom pageZoom, ScrollbarConfiguration scrollbarConfiguration)
-
-
Method Detail
-
getScrollDirection
final PageScrollDirection getScrollDirection()
Direction of the page scroll action.
-
getThumbnailGridEnabled
final Boolean getThumbnailGridEnabled()
Whether the thumbnail grid is enabled.
-
getThumbnailBarMode
final ThumbnailBarMode getThumbnailBarMode()
How the thumbnail bar is displayed.
-
getImmersiveMode
final Boolean getImmersiveMode()
Whether the immersive mode is enabled.
-
getSelectedIndex
final Integer getSelectedIndex()
Index of the first selected page.
-
getPageFitMode
final PageFitMode getPageFitMode()
How the page should fit the screen.
-
getPageScrollMode
final PageScrollMode getPageScrollMode()
Page scrolling mode (Per page or continuous).
-
getStartZoom
final Float getStartZoom()
Initial zoom level for the document.
-
getPageZoom
final PageZoom getPageZoom()
Zoom level of the selected page. with this user can update the zoom level of any page on real time. Acts as a public api to update zoom per page on real time basis. (Only works with PageScrollMode.PER_PAGE)
-
getScrollbarConfiguration
final ScrollbarConfiguration getScrollbarConfiguration()
scrollbar configuration
-
-
-
-