<div class='type'>Interface</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>



```kotlin
interface TextContextMenuDataProvider
```


Provides the data necessary to show the text context menu.

All functions on this interface are expected to be snapshot-aware.


## Functions



<h2 id="position-destinationcoordinates">position</h2>

```kotlin
fun position(destinationCoordinates: LayoutCoordinates): Offset
```


Provides the position to place the context menu around. The position should be relative to
the provided `destinationCoordinates`.

This function is snapshot-aware.




<hr class="docs-overload-divider">


<h2 id="contentbounds-destinationcoordinates">contentBounds</h2>

```kotlin
fun contentBounds(destinationCoordinates: LayoutCoordinates): Rect
```


Provides a bounding box to place the context menu around. The position should be relative to
the provided `destinationCoordinates`.

This function is snapshot-aware.




<hr class="docs-overload-divider">


<h2 id="data">data</h2>

```kotlin
fun data(): TextContextMenuData
```


Provides the components used to fill the context menu.

This function is snapshot-aware.