# PdfView.SelectionMenuItemPreparer

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

*** ** * ** ***


```
public interface PdfView.SelectionMenuItemPreparer
```

<br />

*** ** * ** ***

Interface to customize the set of actions in the selection menu

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `@https://developer.android.com/reference/androidx/annotation/MainThread https://developer.android.com/reference/androidx/pdf/view/PdfView.SelectionMenuItemPreparer#onPrepareSelectionMenuItems(kotlin.collections.MutableList)( @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/selection/ContextMenuComponent> components )` Customize the text selection menu, by adding items to or removing items from `https://developer.android.com/reference/androidx/pdf/view/PdfView.SelectionMenuItemPreparer#onPrepareSelectionMenuItems(kotlin.collections.MutableList)`. |

## Public methods

### onPrepareSelectionMenuItems

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

```
@MainThread
abstract void onPrepareSelectionMenuItems(
    @NonNull List<@NonNull ContextMenuComponent> components
)
```

Customize the text selection menu, by adding items to or removing items from `https://developer.android.com/reference/androidx/pdf/view/PdfView.SelectionMenuItemPreparer#onPrepareSelectionMenuItems(kotlin.collections.MutableList)`.