SpreadSwipeRendererOptions

data class SpreadSwipeRendererOptions(val direction: Axis = Axis.X, val minMarginBetweenSpreads: Int = 24, val rubberBandElasticity: Double = 0.65, val useWindowDimensionsForPageContainers: Boolean = true, val animationDurationMs: Double? = null, val disableAnimations: Boolean = false, val goToAnimationDurationMs: Int? = null, val ignoreAspectRatio: Boolean = false, val pageBackgroundColor: String = "#ffffff")

Options used with the SpreadSwipeRenderer.

Constructors

Link copied to clipboard
fun SpreadSwipeRendererOptions(direction: Axis = Axis.X, minMarginBetweenSpreads: Int = 24, rubberBandElasticity: Double = 0.65, useWindowDimensionsForPageContainers: Boolean = true, animationDurationMs: Double? = null, disableAnimations: Boolean = false, goToAnimationDurationMs: Int? = null, ignoreAspectRatio: Boolean = false, pageBackgroundColor: String = "#ffffff")

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard

How long the animations to next/previous will be. Default is null which will use specific values dependent on the presentation mode and platform types: 'mobile', 'tablet' or 'desktop'.

Link copied to clipboard

The swipe direction to use. Default value is Axis.X

Link copied to clipboard

If animations should be used or not by the renderer.

Link copied to clipboard

The goTo animation duration when fading in. The default value null will use platform specific duration.

Link copied to clipboard

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

Link copied to clipboard

Minimum margin between spreads in pixels.

Link copied to clipboard

A CSS color to use as default page background.

Link copied to clipboard

A number between 0 and 1 configuring the rubberband effect when trying to swipe before the first page or after the last page. Lower value means stronger rubberband effect.

Link copied to clipboard

Use full window dimensions when calculating spread container sizes. This option should be true if the ReaderView element allows content to overflow.