Reader View
Functions
Adds custom CSS to the WebView.
Adds an instance of OnActiveGestureTypeChangedListener to the ReaderView.
Adds an instance of OnActiveRendererChangedListener to the ReaderView.
Adds an instance of OnActiveTransformChangedListener to the ReaderView.
Adds an instance of OnCanPerformNavigationChangedListener to the ReaderView.
Adds an instance of OnKeyboardEventListener to the ReaderView.
Adds an instance of OnMediaElementEventListener to the ReaderView.
Adds an instance of OnMouseEventListener to the ReaderView.
Adds an instance of OnNavigationIntentEventListener to the ReaderView.
Adds an instance of OnNavigationStateChangedListener to the ReaderView.
Adds an instance of OnPageProgressionTimelineEventListener to the ReaderView. Its according method will be called when views PageProgressionTimelineImpl is either recalculated, recalculating or its visible range would change.
Adds an instance of OnPointerEventListener to the ReaderView.
Adds an instance of OnReadingPositionChangedListener to the ReaderView.
Adds an instance of OnRendererScrollEventListener to the ReaderView.
Adds an instance of OnRenderingStateChangedListener to the ReaderView.
Adds an instance of OnSelectionChangedListener to the ReaderView.
Adds an instance of OnVisibleContentChangedListener to the ReaderView.
Adds a renderer to this ReaderView and optionally a mediaQueryRule (CSS media query rule).
Clears any selection made in content documents.
Creates a new ReaderViewAnnotationLayer and adds it to ReaderView.annotationLayers.
Destroys the readerViewAnnotationLayer and removes it from ReaderView.annotationLayers.
Fetch rectangles and locators for line boxes and replaced elements such as <img>
elements from the specified visible page. If a locator
is specified, it will be used to filter the result.
Focus on the page and/or element best matching the reading position inside the WebView.
Go to a specific location in a ReaderDocument that has been added to this ReaderView.
Go to the start of the first ReaderDocument in this ReaderView.
Tell the activeRenderer to navigate to and display next content fragment (i.e. page, spread, or content-document, depending on the renderer implementation). The navigation will be ignored if there is an ongoing navigation started with next(), previous(), goTo() or goToStart().
Tell the activeRenderer to navigate to and display previous content fragment (i.e. page, spread, or content-document, depending on the renderer implementation). The navigation will be ignored if there is an ongoing navigation started with next(), previous(), goTo() or goToStart().
Removes an instance of OnActiveGestureTypeChangedListener from the ReaderView.
Removes an instance of OnActiveRendererChangedListener from the ReaderView.
Removes an instance of OnActiveTransformChangedListener from the ReaderView.
Removes an instance of OnCanPerformNavigationChangedListener from the ReaderView.
Removes an instance of OnKeyboardEventListener from the ReaderView.
Removes an instance of OnMediaElementEventListener from the ReaderView.
Removes an instance of OnMouseEventListener from the ReaderView.
Removes an instance of OnNavigationIntentEventListener to the ReaderView.
Removes an instance of OnNavigationStateChangedListener from the ReaderView.
Removes an instance of OnPageProgressionTimelineEventListener from the ReaderView.
Removes an instance of OnPointerEventListener from the ReaderView.
Removes an instance of OnReadingPositionChangedListener from the ReaderView.
Removes an instance of OnRendererScrollEventListener from the ReaderView.
Removes an instance of OnRenderingStateChangedListener from the ReaderView.
Removes an instance of OnSelectionChangedListener from the ReaderView.
Removes an instance of OnVisibleContentChangedListener from the ReaderView.
Remove a renderer previously added with addRenderer
Sets the HTML content to be displayed in the ReaderView when there is no activeRenderer. If html is null, no content will be shown.
Sets the HTML content to be displayed in the ReaderView for empty pages. This can typically happen in spread renderers when pages have a preferred PageSpreadSlot. If html is null, a blank page will be shown.
Sets the HTML to use when no license has been validated on the device for the duration of the grace period (defaults to 30 days). See OnLicenseEventListener.onLicenseReadingSessionBlocked for more information.
Sets the HTML content to be displayed in the ReaderView when a loading error occurs. A retry button will also be displayed. When clicked it will perform a ReaderView.refresh with force = true.
Sets the HTML content to show when loading publication content. Use this method to change the default loading animation.
Sets margins on the view element inside the WebView. Values should be passed as device pixels.
Attach a SyncMediaPlayer to the ReaderView.
Properties
The list of ReaderViewAnnotationLayer in this ReaderView.
Check if this ReaderView is currently showing the last content in the last reader document added to the ReaderView. Check this value after a call to OnVisibleContentChangedListener.onVisibleRangeChanged to detect when this value is changed.
Check if this ReaderView is currently showing the first content in the first reader document added to the ReaderView. Check this value after a call to OnVisibleContentChangedListener.onVisibleRangeChanged to detect when this value is changed.
If offscreen content is currently rendering. Use addOnRenderingStateChangedListener to detect when this value changes.
Get the page progression direction used by this ReaderView. Will give the actual runtime value after OnVisibleContentChangedListener.onVisiblePagesChanged has been called.
The page progression timeline of this ReaderView if available. Use OnPageProgressionTimelineEventListener.onPageProgressionTimelineRecalculated to detect when a new instance is available.
Gets/sets the ReaderDocuments this ReaderView should render.
The current reading position, or null if this ReaderView is not rendering any publication content. Use addOnReadingPositionChangedListener to detect when this value changes.
Gets/sets if the ReaderView should automatically refresh when the width or height of the ReaderView changes. True by default
If the ReaderView will choose the activeRenderer based on the CSS media query rule associated with each added renderer. See addRenderer for more details.
The ReaderViewTransformManager used for applying transformations such as scaling and translations.
If visible content is currently rendering. Use addOnRenderingStateChangedListener to detect when this value changes.
The current list of visible pages. Use addOnVisibleContentChangedListener to detect when this value changes.
The locator describing the range of the visible content, or null if this ReaderView is not rendering any publication content. Use addOnVisibleContentChangedListener to detect when this value changes.