# 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)

*** ** * ** ***


```
public abstract class ContextMenuComponent
```

<br />

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

|---|---|
| `https://developer.android.com/reference/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 methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Object.html` | `https://developer.android.com/reference/androidx/pdf/selection/ContextMenuComponent#getKey()()` A unique identifier for this component within its context menu. |

## Public methods

### getKey

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

```
public final @NonNull Object getKey()
```

A unique identifier for this component within its context menu.