Paged

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

One page at a time with snap paging (swipe, or drive programmatically via PdfViewState). Each page is letterboxed to fit the viewport.

Parameters

offscreenPages

pages kept composed (and rastered) on each side of the visible one. This trades memory for instant page turns. Defaults to 1 so the immediate neighbours are pre-rasterized while idle and a swipe never waits on a render; raise it to cover faster flinging, set 0 to minimise memory at the cost of a first-swipe render.

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

Reverses the paging direction so page N+1 sits visually LEFT of page N (up in a vertical pager). Use this for right-to-left books (manga, Arabic/Hebrew). Navigation stays logical: nextPage() is always index +1. See pagedFor for automatic selection.