# TextContextMenuData

# TextContextMenuData

Artifact:[androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation)  
[View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/text/contextmenu/data/TextContextMenuData.kt+class:androidx.compose.foundation.text.contextmenu.data.TextContextMenuData)  
Added in[1.9.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.9.0)
Common/AllAndroid/JVM
  - Cmn  

  ```
  class TextContextMenuData
  ```

*** ** * ** ***

A list of components to be displayed in the context menu.

## Summary

|                                                       ### Public companion properties                                                       |
|---------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|-----|
| [TextContextMenuData](https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/contextmenu/data/TextContextMenuData) | [Empty](https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/contextmenu/data/TextContextMenuData#Empty()) | Cmn |

|                                                                                                                                                                                                                   ### Public constructors                                                                                                                                                                                                                    |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [TextContextMenuData](https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/contextmenu/data/TextContextMenuData#TextContextMenuData(kotlin.collections.List))`(components: `[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[TextContextMenuComponent](https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/contextmenu/data/TextContextMenuComponent)`>)` | Cmn |

|                                   ### Public functions                                   |
|------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | [toString](https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/contextmenu/data/TextContextMenuData#toString())`()` | Cmn |

|                                                                                                                ### Public properties                                                                                                                 |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[TextContextMenuComponent](https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/contextmenu/data/TextContextMenuComponent)`>` | [components](https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/contextmenu/data/TextContextMenuData#components()) the list of components to be rendered in the context menu. | Cmn |

## Public companion properties

### Empty

Cmn  
Added in[1.9.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.9.0)  

```
val Empty: TextContextMenuData
```

## Public constructors

### TextContextMenuData

Cmn  

```
TextContextMenuData(components: List<TextContextMenuComponent>)
```  

|                                                                                                                             Parameters                                                                                                                             |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------|
| `components: `[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[TextContextMenuComponent](https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/contextmenu/data/TextContextMenuComponent)`>` | the list of components to be rendered in the context menu. |

## Public functions

### toString

Cmn  

```
open fun toString(): String
```

## Public properties

### components

Cmn  
Added in[1.9.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.9.0)  

```
val components: List<TextContextMenuComponent>
```

the list of components to be rendered in the context menu.