LithoTooltipController
object LithoTooltipController
Functions
Link copied to clipboard
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.
fun showTooltipOnHandle(c: ComponentContext, popupWindow: PopupWindow, handle: Handle, xOffset: Int, yOffset: Int)
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.
fun showTooltipOnHandle(layoutState: LayoutState, lithoView: LithoView?, componentContext: ComponentContext, lithoTooltip: LithoTooltip, handle: Handle, xOffset: Int, yOffset: Int)