# PathPdfObject

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

*** ** * ** ***


```
@ExperimentalPdfApi
public final class PathPdfObject implements PdfObject
```

<br />

*** ** * ** ***

Represents a path PDF object with a PDF document.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/pdf/annotation/content/PathPdfObject.PathInput` Data model for a single path operation and coordinate in a `https://developer.android.com/reference/androidx/pdf/annotation/content/PathPdfObject`. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/pdf/annotation/content/PathPdfObject#PathPdfObject(kotlin.Int,kotlin.Float,kotlin.collections.List)( int brushColor, float brushWidth, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/pdf/annotation/content/PathPdfObject.PathInput> inputs )` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/pdf/annotation/content/PathPdfObject#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final int` | `https://developer.android.com/reference/androidx/pdf/annotation/content/PathPdfObject#getBrushColor()()` The color of the path. |
| `final float` | `https://developer.android.com/reference/androidx/pdf/annotation/content/PathPdfObject#getBrushWidth()()` The width of the path's stroke. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/pdf/annotation/content/PathPdfObject.PathInput>` | `https://developer.android.com/reference/androidx/pdf/annotation/content/PathPdfObject#getInputs()()` The list of coordinates and commands that define the path. |
| `int` | `https://developer.android.com/reference/androidx/pdf/annotation/content/PathPdfObject#hashCode()()` |

## Public constructors

### PathPdfObject

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

```
public PathPdfObject(
    int brushColor,
    float brushWidth,
    @NonNull List<@NonNull PathPdfObject.PathInput> inputs
)
```

## Public methods

### equals

```
public boolean equals(Object other)
```

### getBrushColor

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

```
public final int getBrushColor()
```

The color of the path.

### getBrushWidth

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

```
public final float getBrushWidth()
```

The width of the path's stroke.

### getInputs

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

```
public final @NonNull List<@NonNull PathPdfObject.PathInput> getInputs()
```

The list of coordinates and commands that define the path.

### hashCode

```
public int hashCode()
```