Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Also in [S Extensions 13](https://developer.android.com/sdkExtensions)

# Destination

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/android/graphics/pdf/content/PdfPageGotoLinkContent.Destination "View this page in Java")

```
class Destination : Parcelable
```

|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||
| ↳ | [android.graphics.pdf.content.PdfPageGotoLinkContent.Destination](https://developer.android.com/reference/kotlin/android/graphics/pdf/content/PdfPageGotoLinkContent.Destination#) |

Represents the content associated with the destination where a goto link is directing

## Summary

| Inherited constants ||
|---|---|
| From class `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#` |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR:kotlin.Int` Descriptor bit used with `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#describeContents()`: indicates that the Parcelable object's flattened representation includes a file descriptor. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE:kotlin.Int` Flag for use with `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#writeToParcel(android.os.Parcel,%20kotlin.Int)`: the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`". Some implementations may want to release resources at this point. <br /> | ||

| Public constructors ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/graphics/pdf/content/PdfPageGotoLinkContent.Destination#Destination(kotlin.Int,%20kotlin.Float,%20kotlin.Float,%20kotlin.Float)(pageNumber: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html, xCoordinate: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html, yCoordinate: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html, zoom: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)` Creates a new instance of `https://developer.android.com/reference/kotlin/android/graphics/pdf/content/PdfPageGotoLinkContent.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 methods ||
|---|---|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/graphics/pdf/content/PdfPageGotoLinkContent.Destination#describeContents()()` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/graphics/pdf/content/PdfPageGotoLinkContent.Destination#getPageNumber()()` Gets the page number of the destination where the `https://developer.android.com/reference/kotlin/android/graphics/pdf/content/PdfPageGotoLinkContent` is directing. |
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) | `https://developer.android.com/reference/kotlin/android/graphics/pdf/content/PdfPageGotoLinkContent.Destination#getXCoordinate()()` Gets the x coordinate in points (1/72") of the destination where the `https://developer.android.com/reference/kotlin/android/graphics/pdf/content/PdfPageGotoLinkContent` is directing. |
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) | `https://developer.android.com/reference/kotlin/android/graphics/pdf/content/PdfPageGotoLinkContent.Destination#getYCoordinate()()` Gets the y coordinate in points (1/72") of the destination where the `https://developer.android.com/reference/kotlin/android/graphics/pdf/content/PdfPageGotoLinkContent` is directing. |
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) | `https://developer.android.com/reference/kotlin/android/graphics/pdf/content/PdfPageGotoLinkContent.Destination#getZoom()()` Gets the zoom factor of the page when the goto link takes to the destination |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `https://developer.android.com/reference/kotlin/android/graphics/pdf/content/PdfPageGotoLinkContent.Destination#writeToParcel(android.os.Parcel,%20kotlin.Int)(dest: https://developer.android.com/reference/kotlin/android/os/Parcel.html#, flags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Flatten this object in to a Parcel. |

| Properties ||
|---|---|
| static [Parcelable.Creator](https://developer.android.com/reference/kotlin/android/os/Parcelable.Creator.html#)\<[PdfPageGotoLinkContent.Destination](https://developer.android.com/reference/kotlin/android/graphics/pdf/content/PdfPageGotoLinkContent.Destination#)!\> | `https://developer.android.com/reference/kotlin/android/graphics/pdf/content/PdfPageGotoLinkContent.Destination#CREATOR:android.os.Parcelable.Creator` <br /> |

## Public constructors

### Destination

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Also in [S Extensions 13](https://developer.android.com/sdkExtensions)

```
Destination(
    pageNumber: Int, 
    xCoordinate: Float, 
    yCoordinate: Float, 
    zoom: Float)
```

Creates a new instance of `https://developer.android.com/reference/kotlin/android/graphics/pdf/content/PdfPageGotoLinkContent.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

| Parameters ||
|---|---|
| `pageNumber` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): Page number of the goto link Destination |
| `xCoordinate` | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html): X coordinate of the goto link Destination in points (1/72") |
| `yCoordinate` | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html): Y coordinate of the goto link Destination in points (1/72") |
| `zoom` | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html): Zoom factor `https://developer.android.com/reference/kotlin/android/graphics/pdf/content/PdfPageGotoLinkContent.Destination#getZoom()` of the page when goto link takes to the destination |

| Exceptions ||
|---|---|
| `java.lang.IllegalArgumentException` | If pageNumber or either of the coordinates or zoom are less than zero |

## Public methods

### describeContents

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun describeContents(): Int
```

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#writeToParcel(android.os.Parcel,%20kotlin.Int)`, the return value of this method must include the `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR:kotlin.Int` bit.

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or - `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR:kotlin.Int` |

### getPageNumber

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Also in [S Extensions 13](https://developer.android.com/sdkExtensions)

```
fun getPageNumber(): Int
```

Gets the page number of the destination where the `https://developer.android.com/reference/kotlin/android/graphics/pdf/content/PdfPageGotoLinkContent` is directing.

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | page number of the destination where goto link is directing the user. Value is 0 or greater |

### getXCoordinate

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Also in [S Extensions 13](https://developer.android.com/sdkExtensions)

```
fun getXCoordinate(): Float
```

Gets the x coordinate in points (1/72") of the destination where the `https://developer.android.com/reference/kotlin/android/graphics/pdf/content/PdfPageGotoLinkContent` is directing.

**Note:** If underlying pdfium library can't determine the x coordinate, it will be set to 0

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html` | x coordinate of the Destination where the goto link is directing the user. Value is 0.0f or greater |

### getYCoordinate

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Also in [S Extensions 13](https://developer.android.com/sdkExtensions)

```
fun getYCoordinate(): Float
```

Gets the y coordinate in points (1/72") of the destination where the `https://developer.android.com/reference/kotlin/android/graphics/pdf/content/PdfPageGotoLinkContent` is directing.

**Note:** If underlying pdfium library can't determine the y coordinate, it will be set to 0

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html` | y coordinate of the Destination where the goto link is directing the user. Value is 0.0f or greater |

### getZoom

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Also in [S Extensions 13](https://developer.android.com/sdkExtensions)

```
fun getZoom(): Float
```

Gets the zoom factor of the page when the goto link takes to the destination

**Note:** If there is no zoom value embedded, default value of Zoom will be zero. Otherwise, it will be less than 1.0f in case of zoom out and greater than 1.0f in case of zoom in.

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html` | zoom factor of the page when the goto link takes to the destination. Value is 0.0f or greater |

### writeToParcel

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun writeToParcel(
    dest: Parcel, 
    flags: Int
): Unit
```

Flatten this object in to a Parcel.

| Parameters ||
|---|---|
| `dest` | [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html#): This value cannot be `null`. |
| `flags` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): Additional flags about how the object should be written. May be 0 or `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE:kotlin.Int`. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE:kotlin.Int` |

## Properties

### CREATOR

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Also in [S Extensions 13](https://developer.android.com/sdkExtensions)

```
static val CREATOR: Parcelable.Creator<PdfPageGotoLinkContent.Destination!>
```