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

*** ** * ** ***


```
interface PdfView.SelectionMenuItemPreparer
```

<br />

*** ** * ** ***

Interface to customize the set of actions in the selection menu

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/MainThread https://developer.android.com/reference/kotlin/androidx/pdf/view/PdfView.SelectionMenuItemPreparer#onPrepareSelectionMenuItems(kotlin.collections.MutableList)( components: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html<https://developer.android.com/reference/kotlin/androidx/pdf/selection/ContextMenuComponent> )` Customize the text selection menu, by adding items to or removing items from `https://developer.android.com/reference/kotlin/androidx/pdf/view/PdfView.SelectionMenuItemPreparer#onPrepareSelectionMenuItems(kotlin.collections.MutableList)`. |

## Public functions

### onPrepareSelectionMenuItems

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

```
@MainThread
fun onPrepareSelectionMenuItems(
    components: MutableList<ContextMenuComponent>
): Unit
```

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