SingleDocumentScrollRendererOptions

data class SingleDocumentScrollRendererOptions(val disableAnimations: Boolean = false, val ignoreAspectRatio: Boolean = false, val insets: RectMargins? = null, val maxWidth: Length? = null, val pageBackgroundColor: String = "#ffffff", val readingAreaOffsetBottom: Length? = null, val readingAreaOffsetTop: Length? = null, val scrollAnimationDurationMs: Int? = null, val scrollAnimationMaxDistance: Length? = null, val scrollbarPosition: ScrollRendererScrollbarPosition = ScrollRendererScrollbarPosition.DOCUMENT, val swipeNavigationGestureThreshold: Length? = null)

Options specific for the SingleDocumentScrollRenderer.

Constructors

Link copied to clipboard
constructor(disableAnimations: Boolean = false, ignoreAspectRatio: Boolean = false, insets: RectMargins? = null, maxWidth: Length? = null, pageBackgroundColor: String = "#ffffff", readingAreaOffsetBottom: Length? = null, readingAreaOffsetTop: Length? = null, scrollAnimationDurationMs: Int? = null, scrollAnimationMaxDistance: Length? = null, scrollbarPosition: ScrollRendererScrollbarPosition = ScrollRendererScrollbarPosition.DOCUMENT, swipeNavigationGestureThreshold: Length? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

If animations should be used or not by the renderer.

Link copied to clipboard

Ignore the calculated aspectRatio to take up as much of the available view space as possible.

Link copied to clipboard
val insets: RectMargins? = null

Configures insets that can be used to allow the user to scroll content below system UI elements like the notch on mobile devices.

Link copied to clipboard
val maxWidth: Length? = null

Sets the maximum width of the renderer.

Link copied to clipboard

A CSS color to use as default page background.

Link copied to clipboard

This option describes how far from the bottom of the renderer's visible area the Reading Area will end.

Link copied to clipboard

This option describes how far from the top of the renderer's visible area the Reading Area will start.

Link copied to clipboard

The maximum amount of time to spend on scrolling animations. The duration will be shorter for scrolls shorter than one screen height down to a minimum of 50ms for very short scrolls.

Link copied to clipboard

Sets the maximum scroll distance that will result in an animation. Scroll navigations longer than this distance will instead jump directly to the target location.

Link copied to clipboard

Controls where the vertical scrollbar is placed.

Link copied to clipboard

Controls the minimum swipe distance required to trigger navigation to the next or previous page. A higher value means the user must swipe farther to turn pages.

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)