androidx.compose.foundation.text.contextmenu.modifier
appendTextContextMenuComponentsSince 1.9
Function · from org.jetbrains.compose.foundation:foundation:1.12.2
No hand-written docs yet.
Adds a builder to be run when the text context menu is shown within this hierarchy.
Parameters
fun Modifier.appendTextContextMenuComponents(
builder: TextContextMenuBuilderScope.() -> Unit,
): Modifier
builder: TextContextMenuBuilderScope.() -> UnitRequired
builder: TextContextMenuBuilderScope.() -> UnitRequireda snapshot-aware builder function for adding components to the context menu. In this function you can use member functions from the receiver TextContextMenuBuilderScope, such as [separator()]TextContextMenuBuilderScope.separator, to add components. The item function is not in the common source set, but is instead defined as an extension function in the platform specific source sets.
Library docs
Adds a builder to be run when the text context menu is shown within this hierarchy.
When there are multiple instances of this modifier in a layout hierarchy, the builders are
applied in order from bottom to top. They are then filtered by every
Modifier.filterTextContextMenuComponents``filterTextContextMenuComponents in the hierarchy.