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
final @NonNull String

Returns text as a String

@NonNull String

Public constructors

TextSelection

Added in 1.0.0-alpha11
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-alpha11
public final @NonNull CharSequence getText()

The selected text.

hashCode

public int hashCode()

textAsString

Added in 1.0.0-alpha11
public final @NonNull String textAsString()

Returns text as a String

toString

public @NonNull String toString()