Skip to content
Dominik Schürmann edited this page Feb 6, 2016 · 2 revisions

Starting book viewer activity from other Android applications

The following fields should be filled to call Document Viewer's viewer activity:

  • action - android.intent.action.VIEW
  • uri - path to the book's file
  • packageName - org.sufficientlysecure.viewer
  • className - org.ebookdroid.ui.viewer.ViewerActivity

The following extra parameters are supported to customize book viewer:

Name Type Values Description
persistent Boolean true/false if true, all book preference changes (including position and zoom level) should be stored in DB
pageIndex String numberic string The page number (started from 0) to be shown
offsetX String floating string The horizontal offset on defined page: [0, 1]
offsetY String floating string The vertical offset on defined page: [0, 1]
viewMode String One of the following strings:
  • VERTICALL_SCROLL

  • HORIZONTAL_SCROLL

  • SINGLE_PAGE

Defines the book view mode
animationType String One of the following strings:
  • NONE CURLER

  • CURLER_DYNAMIC

  • CURLER_NATURAL

  • SLIDER

  • FADER

  • SQUEEZER

  • Defines the animation type for single page mode
    pageAlign String One of the following strings:
  • WIDTH

  • HEIGHT

  • AUTO

  • Defines the page align type for single page mode
    splitPages Boolean true/false if true, wide book pages will be splitted on two ones
    cropPages Boolean true/false if true, wide book pages will be cropped
    nightMode Boolean true/false if true, the night mode will be switched on
    Clone this wiki locally