VisiblePageData

data class VisiblePageData(val boundingClientRect: Rect?, val pageIndexInReflowedDocument: Int, val pageSpreadSlot: PageSpreadSlot, val rangeLocator: SimpleLocatorData, val readerDocumentIndexInSpine: Int, val startLocator: SimpleLocatorData)

A page fully visible or partially visible in the ReaderView.

Constructors

Link copied to clipboard
fun VisiblePageData(boundingClientRect: Rect?, pageIndexInReflowedDocument: Int, pageSpreadSlot: PageSpreadSlot, rangeLocator: SimpleLocatorData, readerDocumentIndexInSpine: Int, startLocator: SimpleLocatorData)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard

The bounding client rect of the visible page in application viewport coordinate system. Set to null if this page is not visible.

Link copied to clipboard

The zero-based index in the list of pages generated when reflowing the ReaderDocument. Always returns 0 for non-reflowable ReaderDocuments.

Link copied to clipboard

The page spread slot for this page when using a Renderer capable of showing spreads.

Link copied to clipboard

The range locator representing the entire page contents.

Link copied to clipboard

The index of the ReaderDocument in the ReaderPublication spine this page was generated from.

Link copied to clipboard

The locator to the start of this page.