TextSelection


public final class TextSelection implements Selection


Represents text content that has been selected.

Summary

Public constructors

TextSelection(
    @NonNull CharSequence text,
    @NonNull List<@NonNull PdfRect> bounds
)

Public methods

boolean
equals(Object other)
@NonNull List<@NonNull PdfRect>

The bounding rectangles of the selected text.

final @NonNull CharSequence

The selected text.

int
@NonNull String

Public constructors

TextSelection

Added in 1.0.0-alpha12
public TextSelection(
    @NonNull CharSequence text,
    @NonNull List<@NonNull PdfRect> bounds
)

Public methods

equals

public boolean equals(Object other)

getBounds

public @NonNull List<@NonNull PdfRectgetBounds()

The bounding rectangles of the selected text.

getText

Added in 1.0.0-alpha12
public final @NonNull CharSequence getText()

The selected text.

hashCode

public int hashCode()

toString

public @NonNull String toString()