tencent cloud

Chat

製品の説明
製品の概要
Basic Concepts
ユースケース
機能概要
アカウントシステム
ユーザープロフィールとリレーションシップチェーン
メッセージ管理
グループシステム
Official Account
Audio/Video Call
使用制限
購入ガイド
課金概要
価格説明
Purchase Instructions
Renewal Guide
支払い延滞説明
Refund Policy
ダウンロードセンター
SDK & Demo ソースコード
更新ログ
シナリオプラン
Live Streaming Setup Guide
AI Chatbot
極めて大規模なエンターテインメントコラボレーションコミュニティ
Discord実装ガイド
ゲーム内IM統合ガイド
WhatsApp Channel-style Official Account Integration Solution
Send Red Packet
Firewall Restrictions
クライアントAPIs
SDK API(Web)
Android
iOS & macOS
Swift
Flutter
SDK API(Electron)
SDK APIs (Unity)
SDK API(React Native)
C APIs
C++
サービス側 APIs
UserSigの生成
RESTful APIs
Webhooks
コンソールガイド
New Console Introduction
アプリケーションの作成とアップグレード
基本設定
機能設定
アカウント管理
グループ管理
Official Channel Management
コールバック設定
監視ダッシュボード
Viewing Guide for Resource Packages
Real-Time Monitor
補助ツールの開発
アクセス管理
Advanced Features
よくあるご質問
uni-app FAQs
 購入に関する質問
SDKに関する質問
アカウント認証に関する質問
ユーザープロファイルとリレーションシップチェーンに関する質問
メッセージに関する質問
グループに関する質問
ライブ配信グループに関する質問
ニックネームプロフィール画像に関連した問題
一般的なリファレンス
Service Level Agreement
セキュリティコンプライアンス認証
IM ポリシー
プライバシーポリシー
データプライバシーとセキュリティ契約
エラーコード
お問い合わせ

Android(Compose)

フォーカスモード
フォントサイズ
最終更新日: 2026-03-02 17:56:23

Component Overview

MessageInput is a Jetpack Compose component that provides a full-featured message input interface for users. It supports composing and sending various message types, including text, images, videos, files, and voice messages. Additional features include emoji selection, flexible style configuration, and extensive customization options.
Message Input Interface
Emoji Picker



Component Integration

MessageInput is included in TUIKit Compose. To use MessageInput, integrate TUIKit Compose into your project. For detailed integration steps, see the TUIKit Compose documentation.

Component Structure

MessageInput consists of the main input component and a style configuration protocol, enabling message input functionality with support for customization.

Public Methods

Method
Parameter
Description
MessageInput
conversationID: String
Conversation ID that identifies the current chat session.
For C2C Chat, use the format c2c_userID.
For group chat, use group_groupID.
modifier: Modifier
Jetpack Compose modifier for configuring style, layout, behavior, and appearance.
config: MessageInputConfigProtocol
Input style configuration that controls which function buttons are displayed.
messageInputViewModelFactory: MessageInputViewModelFactory
Factory for creating the internal MessageInputViewModel. Typically, you do not need to provide this manually, as a default implementation is available.

Basic Usage

Initialize and use the MessageInput component by passing a conversation ID.
Box(
modifier = Modifier
.fillMaxWidth()
) {
MessageInput(
conversationID = conversationID,
modifier = Modifier.navigationBarsPadding()
)
}

Customization

Customize which feature buttons appear on the input bar:
// Specify which function buttons to display
MessageInput(
conversationID = conversationID,
config = ChatMessageInputConfig(
isShowAudioRecorder = false, // Hide audio recording
isShowPhotoTaker = true, // Show photo capture
isShowMore = true, // Show more features
)
)
See the customization results below:
Default Input Box
Audio Recording Hidden
All Features Hidden




ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック