Injectable service that resolves adapter keys to TextAdapter instances.
Consumers can look up registered adapters by key or list all available registrations for building dynamic UIs (e.g. a dropdown of adapter choices).
const registry = inject(TextAdapterRegistry);const adapter = registry.create('email'); // TextAdapter | undefinedconst all = registry.entries(); // Map<string, TextAdapterRegistration> Copy
const registry = inject(TextAdapterRegistry);const adapter = registry.create('email'); // TextAdapter | undefinedconst all = registry.entries(); // Map<string, TextAdapterRegistration>
Create an adapter instance by key.
A new adapter, or undefined if the key is not registered.
undefined
Returns all registered adapter entries.
Returns true if an adapter with the given key is registered.
Returns all registered keys.
Injectable service that resolves adapter keys to TextAdapter instances.
Consumers can look up registered adapters by key or list all available registrations for building dynamic UIs (e.g. a dropdown of adapter choices).
Example