GoToLinkSelection


public final class GoToLinkSelection implements 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(
    @NonNull GoToLinkSelection.Destination destination,
    @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 GoToLinkSelection.Destination

The destination of the goto link.

@NonNull CharSequence

The text that is displayed as a goto link.

int
@NonNull String

Public constructors

GoToLinkSelection

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

getDestination

Added in 1.0.0-alpha11
public final @NonNull GoToLinkSelection.Destination getDestination()

The destination of the goto link.

getLinkText

public @NonNull CharSequence getLinkText()

The text that is displayed as a goto link.

hashCode

public int hashCode()

toString

public @NonNull String toString()