LithoTooltipController

Functions

Link copied to clipboard
fun showOnAnchor(tooltip: DeprecatedLithoTooltip, anchorBounds: Rect, hostView: View, tooltipPosition: TooltipPosition, xOffset: Int, yOffset: Int)
Link copied to clipboard
fun showTooltip(c: ComponentContext, lithoTooltip: LithoTooltip, anchorKey: String?)
fun showTooltip(c: ComponentContext, lithoTooltip: LithoTooltip, anchorKey: String?, xOffset: Int, yOffset: Int)

Show the given tooltip on the component with the given anchorKey.

fun showTooltip(c: ComponentContext, tooltip: DeprecatedLithoTooltip, anchorKey: String, tooltipPosition: TooltipPosition)

Show the given tooltip on the component with the given anchorKey in the specified position.

fun showTooltip(context: ComponentContext, popupWindow: PopupWindow, anchorKey: String?, xOffset: Int, yOffset: Int)

Show the given tooltip with the specified offsets from the bottom-left corner of the component with the given anchorKey.

fun showTooltip(c: ComponentContext, popupWindow: PopupWindow, anchorKey: String, tooltipPosition: TooltipPosition, xOffset: Int, yOffset: Int)
fun showTooltip(context: ComponentContext, tooltip: DeprecatedLithoTooltip, anchorKey: String, tooltipPosition: TooltipPosition, xOffset: Int, yOffset: Int)

Show the given tooltip on the component with the given anchorKey with the specified offsets from the given position.

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)
Link copied to clipboard
fun showTooltipOnRootComponent(c: ComponentContext, lithoTooltip: LithoTooltip, xOffset: Int, yOffset: Int)

Show the given tooltip on the root component.

fun showTooltipOnRootComponent(c: ComponentContext, popupWindow: PopupWindow, xOffset: Int, yOffset: Int)

Show the given tooltip with the specified offsets from the bottom-left corner of the root component.