Back to API Reference
Interface

IInteractiveRangeHandler

abstract

Interface for modifiers that provide interactive ranges AND handle their own interactions.

Remarks

Extends IInteractiveRangeProvider with callbacks for click and hover events. Implement this when the modifier needs to respond directly to user interactions (e.g., LinkModifier opening URLs, custom modifiers showing tooltips). For simple providers that only define ranges but don't handle events, implement IInteractiveRangeProvider instead.
public abstract void OnRangeClicked(InteractiveRange range, TextHitResult hit)

Called when the range is clicked/tapped.

public abstract void OnRangeEntered(InteractiveRange range, TextHitResult hit)

Called when the pointer enters the range (desktop only).

public abstract void OnRangeExited(InteractiveRange range)

Called when the pointer exits the range (desktop only).

See Also