TextToolbarState

data class TextToolbarState(val rect: Rect, val canCopy: Boolean, val canPaste: Boolean, val canCut: Boolean, val canSelectAll: Boolean, val canAutofill: Boolean)(source)

State passed to custom text toolbar content.

Constructors

Link copied to clipboard
constructor(rect: Rect, canCopy: Boolean, canPaste: Boolean, canCut: Boolean, canSelectAll: Boolean, canAutofill: Boolean)

Properties

Link copied to clipboard

Whether autofill is available for the focused text field.

Link copied to clipboard

Whether copy is available for the current selection.

Link copied to clipboard

Whether cut is available for the current selection.

Link copied to clipboard

Whether paste is available at the current selection.

Link copied to clipboard

Whether select all is available for the focused text field.

Link copied to clipboard
val rect: Rect

Selection bounds in the Compose scene's global coordinate space.