AutocompleteMatch
data class AutocompleteMatch(val trigger: AutocompleteTrigger, val query: String, val range: IntRange, val queryRange: IntRange, val cursorPosition: Int, val cursorRect: Rect? = null)
Represents an active autocompletion trigger match at the current cursor position.
Properties
Link copied to clipboard
The position of the cursor when this match occurred.
Link copied to clipboard
The bounding rectangle of the cursor in local viewport coordinates (scroll-adjusted), if available.
Link copied to clipboard
The range corresponding to the query string.
Link copied to clipboard
The AutocompleteTrigger that matched.
Functions
Link copied to clipboard
fun AutocompleteMatch.createPopupPositionProvider(offset: IntOffset = IntOffset.Zero): PopupPositionProvider
Creates a PopupPositionProvider that positions a suggestion popup below (or above if constrained) the cursor of this AutocompleteMatch.