tencent cloud

Chat

News and Announcements
Release Notes
Announcements
Product Introduction
Overview
Basic Concepts
Scenarios
Features
Account System
User Profile and Relationship Chain
Message Management
Group Related
Official Account
Audio/Video Call
Use Limits
Purchase Guide
Billing Overview
Pricing
Purchase Instructions
Renewal Guide
Service Suspension Explanation
Refund Policy
Development Guidelines
Demo Zone
Activate Service
Free Demos
Quick Run
Download
SDK and Demo Source Code
Update Log
Chat Interaction (UI Included)
TUIKit Introduction
Getting Started
Full-feature Integration
Single-function Integration
Build with AI
Build Basic Interfaces
More Features
Customizing Appearance
Internationalization
Push Service
Overview
Noun explanation
Activate the Service
Quick Start
Manufacturer Channel
Statistics
Troubleshooting Tool
Client APIs
REST API
Push Callback
Advanced Features
Release Notes
Error Codes
FAQS
Desk
Overview
Quick Start
Integration Guide
Admin Operation Manual
Agent Manual
More Practices
Live Streaming Setup Guide
AI Chatbot
Super Large Entertainment and Collaboration Community
Discord Implementation Guide
How to Integrate Chat into Games
WhatsApp Channel-style Official Account Integration Solution
Send Red Packet
Firewall Restrictions
No UI Integration
Quick Start
SDK Integration
Initialization
Login and Logout
Message
Conversation
Group
Community Topic
User Profile and Relationship Chain
Offline Push
Cloud Search
Local Search
Official Channel Management
Client APIs
JavaScript
Android
iOS & macOS
Swift
Flutter
Electron
Unity
React Native
C APIs
C++
Server APIs
Secure authentication with UserSig
RESTful APIs
Webhooks
Console Guide
New Console Introduction
Creating and Upgrading an Application
Basic Configuration
Feature Configuration
Account Management
Group Management
Official Channel Management
Webhook Configuration
Usage
Viewing Guide for Resource Packages
Real-Time Monitor
Auxiliary Development Tools
Access Management
Advanced Features
FAQs
uni-app FAQs
Purchase
SDK
Account Authentication
User Profile and Relationship Chain
Message
Group
Audio-Video Group
Nickname and Profile Photo
Security Compliance Certification
Service Level Agreement
Security Compliance Certification
Chat Policies
Privacy Policy
Data Privacy and Security Agreement
Migration
Migration Solutions
Migration Solutions Lite
Error Codes
Contact Us

Android(Compose)

PDF
Focus Mode
Font Size
Last updated: 2026-03-02 17:47:57

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


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback