Back to API Reference
Class
InteractiveRangeRegistry
sealed
Central registry for interactive text ranges.
Remarks
Stores references to all IInteractiveRangeProvider instances for a UniText component. Used by UniText to perform hit testing against interactive ranges. Stored in UniTextBuffers as IAttributeData.
public void Register(IInteractiveRangeProvider provider)Registers a provider with the registry.
public void Unregister(IInteractiveRangeProvider provider)Unregisters a provider from the registry.
public bool TryGetRangeAt(int cluster, InteractiveRange range, IInteractiveRangeProvider provider)Attempts to find an interactive range at the specified cluster position.
public bool TryGetRangeAt(int cluster, InteractiveRange range)Attempts to find an interactive range at the specified cluster position.
public static InteractiveRangeRegistry GetOrCreate(UniTextBuffers buffers)Gets or creates the registry for the specified buffers.
public static InteractiveRangeRegistry Get(UniTextBuffers buffers)Gets the registry for the specified buffers if it exists.
