TextRange

data class TextRange(val pageIndex: Int, val start: Int, val length: Int, val textBlocks: List<Rect>)

Data required to select text on a page. Can be used as UI state.

Constructors

Link copied to clipboard
constructor(pageIndex: Int, start: Int, length: Int, textBlocks: List<Rect>)

Properties

Link copied to clipboard
val end: Int
Link copied to clipboard
Link copied to clipboard
val length: Int
Link copied to clipboard
Link copied to clipboard
val start: Int
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

We don't need to compare the textBlocks. pageIndex, start and length are enough to determine equality.

Link copied to clipboard
open override fun hashCode(): Int