Documentation Index
Fetch the complete documentation index at: https://cometchat-22654f5b-docs-android-v6-beta2.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The CometChat Angular UIKit provides a centralized configuration system through theCOMETCHAT_GLOBAL_CONFIG injection token. This allows you to set default values for common properties across all UIKit components from a single location, without having to pass the same inputs to every component instance.
Priority System
All configurable properties follow a three-tier priority system:@Inputvalue (if explicitly set on the component)GlobalConfigvalue (from the injection token)- Component’s internal default value
Setup
Standalone Application (app.config.ts)
NgModule Application (app.module.ts)
Dynamic Configuration with Factory
Configuration Properties
| Property | Type | Default | Description |
|---|---|---|---|
hideReceipts | boolean | undefined | Hide read receipts across all components |
hideError | boolean | undefined | Hide error states across all components |
hideUserStatus | boolean | undefined | Hide user online/offline status indicators |
hideGroupType | boolean | undefined | Hide group type badges (public/private/password) |
showScrollbar | boolean | undefined | Show scrollbar in list components |
showSearchBar | boolean | undefined | Show search bar in list components |
disableSoundForMessages | boolean | undefined | Disable sound notifications for messages |
textFormatters | CometChatTextFormatter[] | undefined | Text formatters for message rendering |
disableDefaultContextMenu | boolean | undefined | Disable right-click context menu across components |
disableSoundForCalls | boolean | undefined | Disable sound for incoming/outgoing calls |
customSoundForCalls | string | undefined | Custom sound URL for calls |
customSoundForMessages | string | undefined | Custom sound URL for messages |
hideAvatar | boolean | undefined | Hide avatar across components |
callSettingsBuilder | CallSettingsBuilder | undefined | Custom CallSettingsBuilder for call components (call buttons, call logs, ongoing call) |
All properties are optional. When a property is
undefined (not set), the component falls back to its own internal default.Call Settings Customization
ThecallSettingsBuilder property lets you provide a custom CometChatCalls.CallSettingsBuilder that is used across all call-related components. This is useful for configuring call UI features like layout, recording, analytics, or audio-only mode globally.
Global Call Settings
Per-Component Override
Even with a globalcallSettingsBuilder, you can override it on individual component instances:
Components That Support callSettingsBuilder
| Component | Behavior |
|---|---|
| CometChatOngoingCall | Accepts callSettingsBuilder as @Input. Passes it to OngoingCallService. |
| CometChatCallButtons | Accepts callSettingsBuilder as @Input. Forwards to CometChatOngoingCall. |
| CometChatMessageHeader | Accepts callSettingsBuilder as @Input. Forwards to CometChatCallButtons. |
| CometChatCallLogs | Accepts callSettingsBuilder as @Input. Uses it in the ongoing call overlay. |
Components That Read GlobalConfig
The following components read fromCOMETCHAT_GLOBAL_CONFIG and apply the three-tier priority system:
| Component | Properties Read |
|---|---|
| CometChatConversations | hideReceipts, hideError, hideUserStatus, hideGroupType, showScrollbar, showSearchBar, disableSoundForMessages, textFormatters, customSoundForMessages, hideAvatar, disableDefaultContextMenu |
| CometChatMessageHeader | hideUserStatus |
| CometChatMessageList | hideReceipts, hideError, textFormatters, disableSoundForMessages, customSoundForMessages, disableDefaultContextMenu |
| CometChatMessageComposer | textFormatters, disableSoundForMessages, customSoundForMessages |
| CometChatCallButtons | disableSoundForCalls, customSoundForCalls, callSettingsBuilder |
| CometChatCallLogs | showScrollbar, callSettingsBuilder |
| CometChatUsers | hideUserStatus, showScrollbar, showSearchBar, hideAvatar, disableDefaultContextMenu |
| CometChatGroups | hideGroupType, showScrollbar, showSearchBar, hideAvatar, disableDefaultContextMenu |
| CometChatGroupMembers | hideUserStatus, showScrollbar, showSearchBar, hideAvatar, disableDefaultContextMenu |
| CometChatOutgoingCall | disableSoundForCalls, customSoundForCalls |
| CometChatIncomingCall | disableSoundForCalls, customSoundForCalls |
Full Example
Related
- Theming — Customize the visual appearance with CSS variables
- Localization — Configure language and translations
- ChatStateService — Centralized chat state management