• 서비스
  • 가격
  • 리소스
  • 기술지원
이 페이지는 현재 영어로만 제공되며 한국어 버전은 곧 제공될 예정입니다. 기다려 주셔서 감사드립니다.

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
},
)
}