androidx.compose.material3

TooltipScope

Sealed interface

No hand-written docs yet.

Tooltip scope for TooltipBox to be used to obtain the LayoutCoordinates of the anchor content, and to draw a caret for the tooltip.

sealed interface TooltipScope

Used by

Parameters that take a TooltipScope.

Functions

obtainAnchorBoundsSince 1.9

fun obtainAnchorBounds(): LayoutCoordinates?

Used to obtain the LayoutCoordinates of the anchor content. This can be used to help draw the caret pointing to the anchor content.

obtainPositionProviderSince 1.9

fun obtainPositionProvider(): PopupPositionProvider

Used to obtain the PopupPositionProvider used. This can be used to help draw the caret pointing to the anchor content.

Library docs

Tooltip scope for TooltipBox to be used to obtain the LayoutCoordinates of the anchor content, and to draw a caret for the tooltip.