Android(Compose)
Component Overview
ChatSetting is a set of chat settings components built with Jetpack Compose. It includes two main components: C2CChatSetting (C2C Chat Settings) and GroupChatSetting (Group Chat Settings).
These components offer comprehensive chat session management features, such as user information management, permission controls, group management, and other essential capabilities.
C2C Chat Settings Interface | Group Chat Settings Interface |
![]() | ![]() |
Component Integration
The ChatSetting component is included in TUIKit Compose. To use ChatSetting, integrate TUIKit Compose into your project. For detailed integration steps, see the TUIKit Compose documentation.
Component Structure
ChatSetting consists of two main components: C2CChatSetting (C2C Chat Settings) and GroupChatSetting (Group Chat Settings). Each component offers a variety of configuration options.
C2C Chat Settings (C2CChatSetting)
Public Methods
Method | Parameter | Description |
C2CChatSetting | userID: String | The user ID of the other participant. Used to identify the chat target. |
| modifier: Modifier | Jetpack Compose modifier for setting the component's style, layout, behavior, and appearance. |
| onSendMessageClick: () -> Unit | Webhook triggered when the Send Message button is clicked. Optional parameter. |
| onContactDelete: () -> Unit | Webhook triggered when the Delete Contact button is clicked. Optional parameter. |
| c2cChatSettingViewModelFactory: C2CChatSettingViewModelFactory | Factory for creating the internal C2CChatSettingViewModel. Typically, you do not need to provide this manually, as the component supplies a default implementation. |
Group Chat Settings (GroupChatSetting)
Public Methods
Method | Parameter | Description |
GroupChatSetting | groupID: String | Group ID. Used to identify the group chat. |
| modifier: Modifier | Jetpack Compose modifier for setting the component's style, layout, behavior, and appearance. |
| onSendMessageClick: () -> Unit | Webhook triggered when the Send Message button is clicked. Optional parameter. |
| onGroupMemberClick: (GroupMember) -> Unit | Webhook triggered when a group member is clicked. Optional parameter. |
| onGroupDelete: () -> Unit | Webhook triggered when the Dissolve/Leave Group button is clicked. Optional parameter. |
| groupChatSettingViewModelFactory: GroupChatSettingViewModelFactory | Factory for creating the internal GroupChatSettingViewModel. Typically, you do not need to provide this manually, as the component supplies a default implementation. |
Basic Usage
To display the C2C Chat Settings page, initialize C2CChatSetting as shown below:
Box {C2CChatSetting(userID = userID,onSendMessageClick = {// Handle send message click event},onContactDelete = {// Handle contact delete click event},)}
To display the Group Chat Settings page, initialize GroupChatSetting as shown below:
Box {GroupChatSetting(groupID = groupID,onGroupMemberClick = { groupMember ->// Handle group member click event},onSendMessageClick = {// Handle send message click event},onGroupDelete = {// Handle dissolve/leave group event},)}

