# GoToLinkSelection

Artifact: [androidx.pdf:pdf-core](https://developer.android.com/jetpack/androidx/releases/pdf) [View Source](https://cs.android.com/search?q=file:androidx/pdf/selection/model/GoToLinkSelection.kt+class:androidx.pdf.selection.model.GoToLinkSelection) Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

*** ** * ** ***


```
class GoToLinkSelection : LinkSelection
```

<br />

*** ** * ** ***

A `https://developer.android.com/reference/kotlin/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 |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/pdf/selection/model/GoToLinkSelection.Destination` 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 |
|---|
| `https://developer.android.com/reference/kotlin/androidx/pdf/selection/model/GoToLinkSelection#GoToLinkSelection(androidx.pdf.selection.model.GoToLinkSelection.Destination,kotlin.CharSequence,kotlin.collections.List)( destination: https://developer.android.com/reference/kotlin/androidx/pdf/selection/model/GoToLinkSelection.Destination, linkText: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html, bounds: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/pdf/PdfRect> )` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/selection/model/GoToLinkSelection#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/selection/model/GoToLinkSelection#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/selection/model/GoToLinkSelection#toString()()` |

| ### Public properties |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/pdf/PdfRect>` | `https://developer.android.com/reference/kotlin/androidx/pdf/selection/model/GoToLinkSelection#bounds()` The list of bounding boxes for the text. |
| `https://developer.android.com/reference/kotlin/androidx/pdf/selection/model/GoToLinkSelection.Destination` | `https://developer.android.com/reference/kotlin/androidx/pdf/selection/model/GoToLinkSelection#destination()` The destination of the goto link. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/selection/model/GoToLinkSelection#linkText()` The text that is displayed as a goto link. |

## Public constructors

### GoToLinkSelection

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
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 bounds: List<PdfRect>
```

The list of bounding boxes for the text.

### destination

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
val destination: GoToLinkSelection.Destination
```

The destination of the goto link.

### linkText

```
open val linkText: CharSequence
```

The text that is displayed as a goto link.