rememberTooltipPositionProvider

@Composable
fun rememberTooltipPositionProvider(positioning: TooltipAnchorPosition, spacingBetweenTooltipAndAnchor: Dp = SpacingBetweenTooltipAndAnchor): PopupPositionProvider

PopupPositionProvider that should be used with either RichTooltip or PlainTooltip. It correctly positions the tooltip in respect to the anchor content.

Parameters

positioning

TooltipAnchorPosition that determines where the tooltip is placed relative to the anchor.

spacingBetweenTooltipAndAnchor

the spacing between the tooltip and the anchor content.


@Composable
fun rememberTooltipPositionProvider(spacingBetweenTooltipAndAnchor: Dp = SpacingBetweenTooltipAndAnchor): PopupPositionProvider

Deprecated

Deprecated in favor of rememberTooltipPositionProvider API that takes a preferred positioning. Please use rememberTooltipPositionProvider with TooltipAnchorPosition.Above if this same behavior is desired.

Replace with

rememberTooltipPositionProvider(TooltipAnchorPosition.ABOVE, spacingBetweenTooltipAndAnchor)

PopupPositionProvider that should be used with either RichTooltip or PlainTooltip. It correctly positions the tooltip in respect to the anchor content.

Parameters

spacingBetweenTooltipAndAnchor

the spacing between the tooltip and the anchor content.