TextSelection

TextSelection represents a selection of text on a document page. This class is not meant to be generated manually, but should be retrieved by calling getTextSelection or by registering a OnTextSelectionModeChangeListener.

See also

Properties

Link copied to clipboard
Parcelable creator for deserializing TextSelection objects from a Parcel.
Link copied to clipboard
@IntRange(from = 0)
val pageIndex: Int
The number of the document page, where the text is selected.
Link copied to clipboard
The selected text or null if there is no text in the current selection.
Link copied to clipboard
A list of rects, holding the selection (in PDF points).
Link copied to clipboard
The selected text range.

Functions

Link copied to clipboard
open fun describeContents(): Int
Describes the kinds of special objects contained in this Parcelable instance's marshaled representation.
Link copied to clipboard
open fun equals(o: Any): Boolean
Compares this text selection to the specified object.
Link copied to clipboard
open fun hashCode(): Int
Returns a hash code value for this text selection based on its text range, selected text, page index, and text blocks.
Link copied to clipboard
open fun writeToParcel(@NonNull dest: Parcel, flags: Int)
Writes this text selection to the given parcel for serialization.