# ContextMenuComponent

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

*** ** * ** ***


```
abstract class ContextMenuComponent
```

<br />

Known direct subclasses [SelectionMenuComponent](https://developer.android.com/reference/kotlin/androidx/pdf/selection/SelectionMenuComponent)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/pdf/selection/SelectionMenuComponent` | Represents a clickable item with a label in a selection menu. |

*** ** * ** ***

An abstract base class for any component that can be displayed within a context menu.

## Summary

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/selection/ContextMenuComponent#key()` A unique identifier for this component within its context menu. |

## Public properties

### key

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

```
val key: Any
```

A unique identifier for this component within its context menu.