TextContextMenuDataProvider


Provides the data necessary to show the text context menu.

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

Summary

Public functions

Rect
contentBounds(destinationCoordinates: LayoutCoordinates)

Provides a bounding box to place the context menu around.

Cmn
TextContextMenuData

Provides the components used to fill the context menu.

Cmn
Offset
position(destinationCoordinates: LayoutCoordinates)

Provides the position to place the context menu around.

Cmn

Public functions

contentBounds

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.

data

fun data(): TextContextMenuData

Provides the components used to fill the context menu.

This function is snapshot-aware.

position

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.