# HyperLinkSelection

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/HyperLinkSelection.kt+class:androidx.pdf.selection.model.HyperLinkSelection) Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

*** ** * ** ***


```
class HyperLinkSelection : LinkSelection
```

<br />

*** ** * ** ***

A `https://developer.android.com/reference/kotlin/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 |
|---|
| `https://developer.android.com/reference/kotlin/androidx/pdf/selection/model/HyperLinkSelection#HyperLinkSelection(android.net.Uri,kotlin.CharSequence,kotlin.collections.List)( link: https://developer.android.com/reference/android/net/Uri.html, 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/HyperLinkSelection#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/HyperLinkSelection#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/selection/model/HyperLinkSelection#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/HyperLinkSelection#bounds()` The list of bounding boxes for the text. |
| `https://developer.android.com/reference/android/net/Uri.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/selection/model/HyperLinkSelection#link()` The URL of the hyperlink. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/selection/model/HyperLinkSelection#linkText()` The text that is displayed as a hyperlink. |

## Public constructors

### HyperLinkSelection

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

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

The list of bounding boxes for the text.

### link

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

```
val link: Uri
```

The URL of the hyperlink.

### linkText

```
open val linkText: CharSequence
```

The text that is displayed as a hyperlink.