Core Classes
CometChatUIKit
The main entry point for initializing and configuring the UIKit.The UIKit exposes two session-check methods with intentionally different casing — this mirrors the underlying CometChat SDK naming.
getLoggedInUser()(capital I, synchronous) — returns the in-memory cached user immediately. Use this for quick checks inside components where you already know the user is logged in.getLoggedinUser()(lowercase i, async) — makes an SDK call to verify the session. Use this inngOnInitormain.tsbefore rendering components, as it is the authoritative check.
UIKitSettings
Build settings usingUIKitSettingsBuilder:
UIKitSettingsBuilder Methods
setCallingEnabled(true) requires @cometchat/calls-sdk-javascript to be installed. Without the Calls SDK package, calling features will not activate even when enabled.Services
Documented Services
Service Scoping (Multiple Instances)
Most customization services (MessageBubbleConfigService, FormatterConfigService, CometChatTemplatesService, RichTextEditorService) are provided at the root level as singletons. This means all component instances share the same configuration by default.
If you need different configurations for different component instances (e.g., a main chat panel and a thread panel with different bubble styles), you can scope a service to a wrapper component by adding it to the component’s providers array. Angular’s hierarchical dependency injection will give that component and its children their own service instance.