# GoToLinkSelection.Destination

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

*** ** * ** ***


```
public final class GoToLinkSelection.Destination
```

<br />

*** ** * ** ***

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

Note: Here (0,0) represents top-left corner of the page.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/pdf/selection/model/GoToLinkSelection.Destination#Destination(kotlin.Int,kotlin.Float,kotlin.Float,kotlin.Float)( int pageNumber, float xCoordinate, float yCoordinate, float zoom )` |

| ### Public methods |
|---|---|
| `final int` | `https://developer.android.com/reference/androidx/pdf/selection/model/GoToLinkSelection.Destination#getPageNumber()()` : Page number of the goto link Destination |
| `final float` | `https://developer.android.com/reference/androidx/pdf/selection/model/GoToLinkSelection.Destination#getXCoordinate()()` : X coordinate of the goto link Destination in points (1/ 72") |
| `final float` | `https://developer.android.com/reference/androidx/pdf/selection/model/GoToLinkSelection.Destination#getYCoordinate()()` : Y coordinate of the goto link Destination in points (1/ 72") |
| `final float` | `https://developer.android.com/reference/androidx/pdf/selection/model/GoToLinkSelection.Destination#getZoom()()` : Zoom factor of the page when goto link takes to the destination |

## Public constructors

### Destination

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

```
public Destination(
    int pageNumber,
    float xCoordinate,
    float yCoordinate,
    float zoom
)
```

| Parameters |
|---|---|
| `int pageNumber` | : Page number of the goto link Destination |
| `float xCoordinate` | : X coordinate of the goto link Destination in points (1/ 72") |
| `float yCoordinate` | : Y coordinate of the goto link Destination in points (1/ 72") |
| `float zoom` | : Zoom factor of the page when goto link takes to the destination |

## Public methods

### getPageNumber

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

```
public final int getPageNumber()
```

: Page number of the goto link Destination

### getXCoordinate

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

```
public final float getXCoordinate()
```

: X coordinate of the goto link Destination in points (1/ 72")

### getYCoordinate

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

```
public final float getYCoordinate()
```

: Y coordinate of the goto link Destination in points (1/ 72")

### getZoom

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

```
public final float getZoom()
```

: Zoom factor of the page when goto link takes to the destination