Spread

data class Spread(val orientation: Orientation = Orientation.Horizontal, val offscreenPages: Int = 1, val reverseLayout: Boolean = false) : PdfLayout

Two-page spreads: one snap-pager item shows pages (2k, 2k+1) side by side, like an open book; an odd trailing page centres alone. reverseLayout swaps both the swipe direction and the in-spread visual order (page 2k on the right), for right-to-left books. Navigation stays logical (nextPage() = index +1; the visible spread advances every second step). Meant for fixed-layout content (PDF, pre-paginated EPUB); reflowable EPUB gains nothing from it.

Constructors

Link copied to clipboard
constructor(orientation: Orientation = Orientation.Horizontal, offscreenPages: Int = 1, reverseLayout: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard