TextContextMenuProvider


The provider determines how the context menu is shown and its appearance.

The context menu can be customized by providing another implementation of this to LocalTextContextMenuDropdownProvider or LocalTextContextMenuToolbarProvider via a CompositionLocalProvider.

If you want to modify the contents of the context menu, see Modifier.addTextContextMenuComponents and Modifier.filterTextContextMenuComponents

Summary

Public functions

suspend Unit

Shows the text context menu.

Cmn

Public functions

showTextContextMenu

suspend fun showTextContextMenu(dataProvider: TextContextMenuDataProvider): Unit

Shows the text context menu.

This function suspends until the context menu is closed. If the coroutine is cancelled, the context menu will be closed.

Parameters
dataProvider: TextContextMenuDataProvider

provides the data necessary to show the text context menu.