GoToLinkSelection


class GoToLinkSelection : LinkSelection


A androidx.pdf.selection.Selection for a goto link.

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

Summary

Nested types

Creates a new instance of GoToLinkSelection.Destination using the page number, x coordinate, and y coordinate of the destination where goto link is directing, and the zoom factor of the page when goto link takes to the destination

Public constructors

GoToLinkSelection(
    destination: GoToLinkSelection.Destination,
    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.

GoToLinkSelection.Destination

The destination of the goto link.

open CharSequence

The text that is displayed as a goto link.

Public constructors

GoToLinkSelection

Added in 1.0.0-alpha11
GoToLinkSelection(
    destination: GoToLinkSelection.Destination,
    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.

destination

Added in 1.0.0-alpha11
val destinationGoToLinkSelection.Destination

The destination of the goto link.

linkText

open val linkTextCharSequence

The text that is displayed as a goto link.