# AnnotationsView.AnnotationMode.Highlight

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

*** ** * ** ***


```
public final class AnnotationsView.AnnotationMode.Highlight extends AnnotationsView.AnnotationMode
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.pdf.annotation.AnnotationsView.AnnotationMode](https://developer.android.com/reference/androidx/pdf/annotation/AnnotationsView.AnnotationMode) ||
|   | ↳ | [androidx.pdf.annotation.AnnotationsView.AnnotationMode.Highlight](https://developer.android.com/reference/androidx/pdf/annotation/AnnotationsView.AnnotationMode.Highlight) |

*** ** * ** ***

Mode for creating new highlight annotations.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/pdf/annotation/AnnotationsView.AnnotationMode.Highlight#Highlight(kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/ColorInt int color)` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/ColorInt int` | `https://developer.android.com/reference/androidx/pdf/annotation/AnnotationsView.AnnotationMode.Highlight#getColor()()` |

## Public constructors

### Highlight

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

```
public Highlight(@ColorInt int color)
```

## Public methods

### getColor

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

```
public final @ColorInt int getColor()
```