public class

TextSelection

extends Object
implements Parcelable
java.lang.Object
   ↳ com.pspdfkit.datastructures.TextSelection

Class Overview

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 TextSelectionManager.OnTextSelectionModeChangeListener.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<TextSelection> CREATOR
public final int pageIndex The number of the document page, where the text is selected.
public final String text The selected text or null if there is no text in the current selection.
public final List<RectF> textBlocks A list of rects, holding the selection (in PDF points).
public final Range textRange The selected text range.
Protected Constructors
TextSelection(Parcel in)
Public Methods
int describeContents()
boolean equals(Object o)
int hashCode()
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<TextSelection> CREATOR

public final int pageIndex

The number of the document page, where the text is selected.

public final String text

The selected text or null if there is no text in the current selection.

public final List<RectF> textBlocks

A list of rects, holding the selection (in PDF points).

public final Range textRange

The selected text range. This is 0-based.

Protected Constructors

protected TextSelection (Parcel in)

Public Methods

public int describeContents ()

public boolean equals (Object o)

public int hashCode ()

public void writeToParcel (Parcel dest, int flags)