HyperLinkSelection


class HyperLinkSelection : 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(
    link: Uri,
    linkText: CharSequence,
    bounds: List<PdfRect>
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

open List<PdfRect>

The list of bounding boxes for the text.

Uri

The URL of the hyperlink.

open CharSequence

The text that is displayed as a hyperlink.

Public constructors

HyperLinkSelection

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

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

bounds

open val boundsList<PdfRect>

The list of bounding boxes for the text.

link

Added in 1.0.0-alpha11
val linkUri

The URL of the hyperlink.

linkText

open val linkTextCharSequence

The text that is displayed as a hyperlink.