HyperLinkSelection


public final class HyperLinkSelection implements LinkSelection


A androidx.pdf.selection.Selection for a hyperlink.

This represents a text range that is also a hyperlink, containing both the link and the text that is displayed.

Summary

Public constructors

HyperLinkSelection(
    @NonNull Uri link,
    @NonNull CharSequence linkText,
    @NonNull List<@NonNull PdfRect> bounds
)

Public methods

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

The list of bounding boxes for the text.

final @NonNull Uri

The URL of the hyperlink.

@NonNull CharSequence

The text that is displayed as a hyperlink.

int
@NonNull String

Public constructors

HyperLinkSelection

Added in 1.0.0-alpha11
public HyperLinkSelection(
    @NonNull Uri link,
    @NonNull CharSequence linkText,
    @NonNull List<@NonNull PdfRect> bounds
)

Public methods

equals

public boolean equals(Object other)

getBounds

public @NonNull List<@NonNull PdfRectgetBounds()

The list of bounding boxes for the text.

getLink

Added in 1.0.0-alpha11
public final @NonNull Uri getLink()

The URL of the hyperlink.

getLinkText

public @NonNull CharSequence getLinkText()

The text that is displayed as a hyperlink.

hashCode

public int hashCode()

toString

public @NonNull String toString()