PageLayoutResult

After the first frame of a Paged is committed, the breakpoints and page offsets are calculated and passed to a callback via an instance of this interface.

Functions

Link copied to clipboard
abstract fun nextPageOffsetPx(currentPageOffsetPx: Int): Int?

Given the offset of the start of the current page, returns the y offset in pixels of the start of the next page. In other words, the offset of the last breakpoint that would fit on the current page but get clipped.

Properties

Link copied to clipboard
Link copied to clipboard
abstract val pageOffsetsPx: List<Int>

The pixel offsets of each page, for passing to Paged's pageOffsetPx parameter. The last offset will be the end of the last page.

Link copied to clipboard
abstract val pageSizePx: IntSize

Page size in pixels.