showTooltipOnHandle

fun showTooltipOnHandle(c: ComponentContext, lithoTooltip: LithoTooltip, handle: Handle, xOffset: Int = 0, yOffset: Int = 0)

Show the given tooltip on the component with the given handle instance.

Parameters

c
lithoTooltip

A LithoTooltip implementation to be shown on the anchor.

handle

A Handle used to discover the object in the hierarchy.

xOffset

horizontal offset from default position where the tooltip shows.

yOffset

vertical offset from default position where the tooltip shows.


fun showTooltipOnHandle(layoutState: LayoutState, lithoView: LithoView?, componentContext: ComponentContext, lithoTooltip: LithoTooltip, handle: Handle, xOffset: Int, yOffset: Int)


fun showTooltipOnHandle(c: ComponentContext, popupWindow: PopupWindow, handle: Handle, xOffset: Int, yOffset: Int)

Show the given tooltip on the component with the given handle instance.

Parameters

c
popupWindow

A PopupWindow implementation to be shown in the tooltip.

handle

A Handle used to discover the object in the hierarchy.

xOffset

horizontal offset from default position where the tooltip shows.

yOffset

vertical offset from default position where the tooltip shows.


fun showTooltipOnHandle(c: ComponentContext, handle: Handle, showTooltip: (container: View, anchorBounds: Rect) -> Unit)

Will invoke showTooltip for the given handle if it has a valid container. The code of showTooltip should be the one responsible for drawing the tooltip in the screen and is left for the client implementation.