Initialize the ChatUI application
Initialization parameters
ChatUI application instance or null if initialization fails
Set feature toggle switches. Must be called before ready().
Feature command from ChatUICommand enum
Whether to enable the feature
Query feature toggle switch status
Feature command from ChatUICommand enum
Whether the feature is enabled
Set channel bar visibility switch (mobile only)
Whether to show the channel bar
Set channel detail back button visibility (mobile only)
Whether to show the back button
Set channel bar title (only works when channel bar is enabled)
Title text, undefined to use default
Register custom message types. Must be called before ready().
Array of custom message registration configurations
Result indicating success or failure
Get a copy of built-in language pack entries
Language code to retrieve (e.g., 'en_US', 'zh_CN')
Language pack entries object or null if not found
Register or override language pack. Only effective before ready().
Language code (e.g., 'en_US', 'zh_CN')
Language pack entries
Text direction, defaults to 'ltr'. Only effective when registering a new language.
Switch language
Target language code
Get current language
Current language code
Get list of supported languages
Array of supported language codes
Set custom push notification configuration hook
Function to modify push notification title, content, etc. before sending
Update user profile. Must be called after ready().
User profile data
Update group profile. Must be called after ready().
Group profile data
Update user online status. Must be called after ready().
User ID
Online status
Refresh group member list immediately. This also updates the group's memberCount.
Group ID
Member list
Add group members. This also updates the group's memberCount.
Group ID
Members to add
Remove group members. This also updates the group's memberCount.
Group ID
User IDs to remove
Get a copy of the channel list context menu
Array of channel menu items
Set channel list context menu
Array of channel menu items
Get a copy of the message context menu
Array of message menu items
Set message context menu
Array of message menu items
Open a specific channel. If the channel doesn't exist in the current channel list, creates it and places it at the top.
Channel identifier (channelType + targetId)
Whether to focus the input box, defaults to true
Result indicating success or failure
Delete a specific channel
Channel identifier
Get the currently opened channel. Returns null if no channel is open.
Channel model or null
Add feature extensions to the channel detail panel. Only effective before ready().
Array of extension configurations
Get a copy of the input menu configuration
Input menu configuration
Set new input menu configuration. Must be called before ready().
Input menu configuration
Get a copy of the message bubble configuration
Message bubble configuration
Set message bubble configuration. Must be called before ready().
Message bubble configuration
Get a copy of the channel list item configuration
Channel list item configuration
Set channel list item configuration. Must be called before ready().
Channel list item configuration
Get a copy of existing image emoji libraries
Array of image emoji libraries
Set image emoji libraries
Array of image emoji libraries
Get a copy of the character emoji library
Character emoji library
Set character emoji library. Must be called before ready().
Character emoji library
Send a message
Channel identifier
Send message parameters
Result containing the sent message or error
Insert a message into the local cache
Message to insert
Result indicating success or failure
Notify the SDK that configuration is complete and ready for initialization
Check if the SDK has completed initialization
Whether initialization is complete
Get the current user ID
Current user ID
Destroy the application and clean up resources
Main ChatUI application class
The core class for managing the ChatUI SDK, providing methods for initialization, configuration, and interaction with the IM system