Back to API Reference
Interface

IInteractiveRangeProvider

abstract

Interface for modifiers that provide interactive text ranges.

Remarks

Implement this interface to register clickable/hoverable regions in text. The InteractiveRangeRegistry queries all providers to find which range (if any) contains a given cluster position. For modifiers that also want to handle click/hover events directly, implement IInteractiveRangeHandler instead.
public string RangeType{ get }

Identifies the type of ranges this provider creates (e.g., "link", "hashtag").

public int Priority{ get }

Priority for resolving overlapping ranges. Higher values win.

public abstract bool TryGetRange(int cluster, InteractiveRange range)

Attempts to find an interactive range containing the specified cluster.

See Also