# PdfSelectionMenuBuilderScope

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


```
class PdfSelectionMenuBuilderScope
```

<br />

*** ** * ** ***

Scope for building a selection menu in `https://developer.android.com/reference/kotlin/androidx/pdf/compose/PdfViewer.composable#PdfViewer(androidx.pdf.PdfDocument,androidx.pdf.compose.PdfViewerState,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.Boolean,androidx.pdf.ocr.OcrProvider,kotlin.Float,kotlin.Float,kotlin.Int,kotlin.Int,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.pdf.compose.FastScrollConfiguration,androidx.compose.foundation.layout.PaddingValues,kotlin.Function1,kotlin.Function1,kotlin.Function1,kotlin.Function0,kotlin.Function1)`.

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/compose/PdfSelectionMenuBuilderScope#item(kotlin.Any,kotlin.String,kotlin.String,kotlin.Function1)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, label: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, contentDescription: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, onClick: https://developer.android.com/reference/kotlin/androidx/pdf/selection/SelectionMenuSession.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Adds an item in the selection menu. |

## Public functions

### item

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

```
fun item(key: Any, label: String, contentDescription: String?, onClick: SelectionMenuSession.() -> Unit): Unit
```

Adds an item in the selection menu.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html` | A unique identifier for this component. |
| `label: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The text to display for this menu item. |
| `contentDescription: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | An optional accessibility description for screen readers. |
| `onClick: https://developer.android.com/reference/kotlin/androidx/pdf/selection/SelectionMenuSession.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | A lambda function invoked when the item is clicked, providing access to the `https://developer.android.com/reference/kotlin/androidx/pdf/selection/SelectionMenuSession`. |