Paged

data class Paged(val orientation: Orientation = Orientation.Horizontal, val offscreenPages: Int = 1) : 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 — trade 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)

Properties

Link copied to clipboard
Link copied to clipboard