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 int ProviderCount{ get }

Gets the number of registered providers.

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 void UpdateProviderHighlighters()

Calls Update on per-provider highlighters for animation updates.

public void Release()
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.

public static const string AttributeKey

Key for storing this registry in UniTextBuffers.

See Also