@tencentcloud/sdk-mcp 1.3.8 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/resource/doc/{tuicallkit/android/faq.md → callkit/faq/android-faq.md} +75 -308
- package/resource/doc/{tuicallkit/faq/common/error_code.md → callkit/faq/common/error-code.md} +2 -2
- package/resource/doc/{tuicallkit/flutter/faq.md → callkit/faq/flutter-faq.md} +83 -315
- package/resource/doc/{tuicallkit/iOS/faq.md → callkit/faq/ios-faq.md} +76 -313
- package/resource/doc/{tuicallkit/react/faq.md → callkit/faq/web-faq.md} +78 -311
- package/resource/doc/callkit/preset/android/api.md +330 -0
- package/resource/doc/callkit/preset/android/integration.md +530 -0
- package/resource/doc/callkit/preset/flutter/api.md +401 -0
- package/resource/doc/{tuicallkit → callkit/preset}/flutter/integration.md +53 -273
- package/resource/doc/callkit/preset/ios/api.md +282 -0
- package/resource/doc/{tuicallkit/iOS → callkit/preset/ios}/integration.md +39 -120
- package/resource/doc/callkit/preset/react/api.md +600 -0
- package/resource/doc/{tuicallkit → callkit/preset}/react/integration.md +6 -6
- package/resource/doc/callkit/preset/vue/api.md +600 -0
- package/resource/doc/{tuicallkit → callkit/preset}/vue/integration.md +5 -5
- package/resource/doc/{chatuikit → chatkit}/android/faq.md +29 -37
- package/resource/doc/{chatuikit → chatkit}/android/features/theme.md +22 -166
- package/resource/doc/chatkit/android/integration.md +498 -0
- package/resource/doc/chatkit/faq/android_sdk/client-api.md +280 -0
- package/resource/doc/{chatuikit → chatkit}/faq/common/product.md +4 -17
- package/resource/doc/{chatuikit → chatkit}/faq/common/server.md +1 -2
- package/resource/doc/chatkit/faq/flutter_sdk/client-api.md +183 -0
- package/resource/doc/{chatuikit → chatkit}/faq/flutter_sdk/faq.md +3 -3
- package/resource/doc/chatkit/faq/ios_sdk/client-api.md +279 -0
- package/resource/doc/{chatuikit → chatkit}/faq/web_sdk/error_code.md +1 -1
- package/resource/doc/{chatuikit → chatkit}/faq/web_sdk/faq.md +4 -4
- package/resource/doc/{chatuikit → chatkit}/flutter/features/theme.md +22 -166
- package/resource/doc/{chatuikit → chatkit}/flutter/integration.md +20 -95
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/faq.md +29 -37
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/features/theme.md +27 -176
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/integration.md +78 -280
- package/resource/doc/{chatuikit/vue → chatkit/react}/components/avatar.md +0 -1
- package/resource/doc/{chatuikit → chatkit}/react/components/chat-header.md +7 -12
- package/resource/doc/{chatuikit → chatkit}/react/components/chat-setting.md +10 -17
- package/resource/doc/{chatuikit → chatkit}/react/components/chat.md +1 -1
- package/resource/doc/{chatuikit → chatkit}/react/components/component-list.md +0 -1
- package/resource/doc/{chatuikit → chatkit}/react/components/contact-list.md +122 -703
- package/resource/doc/chatkit/react/components/conversation-actions.md +174 -0
- package/resource/doc/chatkit/react/components/conversation-list.md +333 -0
- package/resource/doc/chatkit/react/components/conversation-preview.md +116 -0
- package/resource/doc/chatkit/react/components/conversation-search.md +57 -0
- package/resource/doc/{chatuikit → chatkit}/react/components/message-input.md +36 -186
- package/resource/doc/{chatuikit → chatkit}/react/components/message-list.md +21 -113
- package/resource/doc/chatkit/react/components/search.md +282 -0
- package/resource/doc/{chatuikit → chatkit}/react/components/tuikit.md +5 -26
- package/resource/doc/{chatuikit → chatkit}/react/integration.md +37 -104
- package/resource/doc/{chatuikit/react → chatkit/vue}/components/avatar.md +0 -1
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat-header.md +7 -13
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat-setting.md +13 -18
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat.md +1 -2
- package/resource/doc/{chatuikit → chatkit}/vue/components/component-list.md +0 -1
- package/resource/doc/chatkit/vue/components/contact-list.md +271 -0
- package/resource/doc/chatkit/vue/components/conversation-actions.md +228 -0
- package/resource/doc/{chatuikit → chatkit}/vue/components/conversation-list.md +42 -316
- package/resource/doc/chatkit/vue/components/conversation-preview.md +213 -0
- package/resource/doc/chatkit/vue/components/conversation-search.md +50 -0
- package/resource/doc/{chatuikit → chatkit}/vue/components/message-input.md +1 -23
- package/resource/doc/{chatuikit → chatkit}/vue/components/message-list.md +23 -134
- package/resource/doc/{chatuikit → chatkit}/vue/components/search.md +73 -640
- package/resource/doc/chatkit/vue/components/tuikit.md +45 -0
- package/resource/doc/{chatuikit → chatkit}/vue/components/userpicker.md +4 -4
- package/resource/doc/{chatuikit → chatkit}/vue/faq.md +1 -1
- package/resource/doc/{chatuikit → chatkit}/vue/integration.md +53 -121
- package/resource/doc/livekit/core-sdk/live/android/api-reference/AudioEffectStore.md +283 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/BarrageStore.md +148 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/BattleStore.md +316 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/CameraView.md +57 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/CoGuestStore.md +419 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/CoHostStore.md +325 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/DeviceStore.md +436 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/GiftStore.md +165 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LikeStore.md +49 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveAudienceStore.md +239 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveCoreView.md +74 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveSeatStore.md +417 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LoginStore.md +207 -0
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-audience-list.md +17 -88
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-audio-effect.md +34 -192
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-barrage.md +26 -139
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-base-beauty.md +16 -99
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-co-guest-interaction.md +54 -161
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-gift.md +75 -455
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-host-interaction.md +91 -338
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-integration.md +108 -492
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-live-list.md +27 -165
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/AudioEffectStore.md +279 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BarrageStore.md +158 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BaseBeautyStore.md +155 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BattleStore.md +304 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/CoGuestStore.md +394 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/CoHostStore.md +303 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/DeviceStore.md +410 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/GiftStore.md +160 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LikeStore.md +51 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveAudienceStore.md +231 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveCoreView.md +143 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveSeatStore.md +375 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LoginStore.md +170 -0
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-audience-list.md +13 -91
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-audio-effect.md +34 -177
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-barrage.md +18 -102
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-base-beauty.md +24 -164
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-co-guest-interaction.md +56 -161
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-gift.md +66 -460
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-host-interaction.md +117 -364
- package/resource/doc/livekit/core-sdk/live/flutter/live-integration.md +687 -0
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-live-list.md +22 -161
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/AudioEffectStore.md +287 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/BarrageStore.md +165 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/BaseBeautyStore.md +143 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/BattleStore.md +298 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/CoGuestStore.md +349 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/CoHostStore.md +297 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/DeviceStore.md +471 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/GiftStore.md +179 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LikeStore.md +49 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveAudienceStore.md +238 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveCoreView.md +74 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveSeatStore.md +412 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LoginStore.md +173 -0
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-audience-list.md +23 -96
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-audio-effect.md +33 -195
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-barrage.md +35 -150
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-base-beauty.md +20 -105
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-co-guest-interaction.md +35 -140
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-gift.md +77 -457
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-host-interaction.md +70 -317
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-integration.md +90 -473
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-live-list.md +28 -163
- package/resource/doc/livekit/core-sdk/voice/android/voice-audience-list.md +264 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-audio-effect.md +226 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-barrage.md +456 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-co-guest-interaction.md +539 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-gift.md +453 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-host-interaction.md +516 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-integration.md +509 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-room-list.md +365 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-audience-list.md +259 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-audio-effect.md +596 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-barrage.md +494 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-co-guest-interaction.md +516 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-gift.md +418 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-integration.md +563 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-room-list.md +709 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-audience-list.md +262 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-audio-effect.md +211 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-barrage.md +414 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-co-guest-interaction.md +492 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-gift.md +405 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-host-interaction.md +611 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-integration.md +478 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-room-list.md +336 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-audience-list.md +234 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-audio-effect.md +218 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-barrage.md +376 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-co-guest-interaction.md +648 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-gift.md +362 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-integration.md +323 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-room-list.md +470 -0
- package/resource/doc/livekit/faq/common/{error_code.md → error-code.md} +2 -3
- package/resource/doc/livekit/preset/live/vue/api-reference/index.md +780 -0
- package/resource/doc/livekit/preset/live/vue/components/barrage.md +291 -0
- package/resource/doc/livekit/{live → preset/live}/vue/components/co-guest-panel.md +9 -48
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-audience-list.md +27 -145
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-scene-panel.md +13 -76
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-view.md +33 -224
- package/resource/doc/livekit/preset/live/vue/components/stream-mixer.md +211 -0
- package/resource/doc/livekit/preset/live/vue/faq.md +1 -0
- package/resource/doc/livekit/preset/live/vue/live-list-integration.md +244 -0
- package/resource/doc/livekit/preset/live/vue/live-player-desk-integration.md +301 -0
- package/resource/doc/livekit/preset/live/vue/live-player-h5-integration.md +307 -0
- package/resource/doc/livekit/preset/live/vue/live-pusher-integration.md +754 -0
- package/resource/doc/roomkit/android/features/call-user-to-room.md +234 -0
- package/resource/doc/roomkit/android/features/room-participant-state.md +850 -0
- package/resource/doc/roomkit/android/features/room-state.md +358 -0
- package/resource/doc/roomkit/android/features/schedule-room.md +336 -0
- package/resource/doc/roomkit/android/integration.md +433 -0
- package/resource/doc/roomkit/{common/error_code.md → faq/common/error-code.md} +1 -1
- package/resource/doc/roomkit/flutter/features/call-user-to-room.md +228 -0
- package/resource/doc/roomkit/flutter/features/room-participant-state.md +796 -0
- package/resource/doc/roomkit/flutter/features/room-state.md +324 -0
- package/resource/doc/roomkit/flutter/features/schedule-room.md +324 -0
- package/resource/doc/roomkit/flutter/integration.md +405 -0
- package/resource/doc/roomkit/ios/features/call-user-to-room.md +226 -0
- package/resource/doc/roomkit/ios/features/room-participant-state.md +821 -0
- package/resource/doc/roomkit/ios/features/room-state.md +320 -0
- package/resource/doc/roomkit/ios/features/schedule-room.md +318 -0
- package/resource/doc/roomkit/ios/integration.md +384 -0
- package/resource/doc/roomkit/vue/faq.md +1 -0
- package/resource/doc/roomkit/vue/features/call-user-to-room.md +17 -53
- package/resource/doc/roomkit/vue/features/device-detection.md +30 -48
- package/resource/doc/roomkit/vue/features/device-state.md +24 -44
- package/resource/doc/roomkit/vue/features/free-beauty-panel.md +13 -36
- package/resource/doc/roomkit/vue/features/room-chat.md +31 -89
- package/resource/doc/roomkit/vue/features/room-participant-state.md +28 -50
- package/resource/doc/roomkit/vue/features/room-state.md +25 -36
- package/resource/doc/roomkit/vue/features/room-view.md +30 -127
- package/resource/doc/roomkit/vue/features/schedule-room.md +9 -40
- package/resource/doc/roomkit/vue/features/screen-share.md +22 -90
- package/resource/doc/roomkit/vue/features/virtual-background.md +13 -34
- package/resource/doc/roomkit/vue/integration.md +118 -282
- package/resource/doc/rtcengine/faq/common/userSig.md +17 -141
- package/resource/doc/rtcengine/faq/web/web.md +15 -22
- package/resource/doc/rtcengine/web/api.md +17 -21
- package/resource/doc/rtcengine/web/how_to_integrated_web_sdk.md +4 -10
- package/resource/doc/rtcengine/web/how_to_run_web_sdk_demo.md +4 -8
- package/resource/doc/rtcengine/web/plugin/20-advanced-customized-capture-rendering.md +3 -3
- package/resource/doc/rtcengine/web/plugin/21-advanced-auto-play-policy.md +2 -3
- package/resource/doc/rtcengine/web/plugin/22-advanced-audio-mixer.md +6 -6
- package/resource/doc/rtcengine/web/plugin/23-advanced-support-detection.md +2 -2
- package/resource/doc/rtcengine/web/plugin/24-advanced-network-quality.md +2 -4
- package/resource/doc/rtcengine/web/plugin/25-advanced-device-change.md +1 -2
- package/resource/doc/rtcengine/web/plugin/26-advanced-publish-cdn-stream.md +2 -6
- package/resource/doc/rtcengine/web/plugin/27-advanced-small-stream.md +13 -14
- package/resource/doc/rtcengine/web/plugin/28-advanced-beauty.md +10 -90
- package/resource/doc/rtcengine/web/plugin/31-advanced-plugins-overview.md +5 -8
- package/resource/doc/rtcengine/web/plugin/34-advanced-proxy.md +31 -35
- package/resource/doc/rtcengine/web/plugin/35-advanced-ai-denoiser.md +0 -2
- package/resource/doc/rtcengine/web/plugin/36-advanced-virtual-background.md +7 -49
- package/resource/doc/rtcengine/web/plugin/37-advanced-voice-changer.md +1 -1
- package/resource/doc/rtcengine/web/plugin/39-advanced-video-decoder.md +0 -3
- package/resource/doc/rtcengine/web/plugin/40-advanced-video-mixer.md +20 -20
- package/resource/doc/rtcengine/web/plugin/41-advanced-small-stream-auto-switcher.md +1 -1
- package/resource/doc/rtcengine/web/plugin/42-advanced-realtime-transcriber.md +4 -4
- package/resource/doc/rtcengine/web/plugin/43-advanced-face-detection.md +3 -3
- package/resource/doc/trtc/C++/ITRTCCloud.md +718 -2847
- package/resource/doc/trtc/C++/ITRTCStatistics.md +53 -308
- package/resource/doc/trtc/C++/ITXAudioEffectManager.md +207 -1041
- package/resource/doc/trtc/C++/ITXDeviceManager.md +127 -768
- package/resource/doc/trtc/C++/TRTCCloudCallback.md +634 -2259
- package/resource/doc/trtc/C++/TRTCTypeDef.md +726 -3465
- package/resource/doc/trtc/C++/TXLiteAVCode.md +117 -916
- package/resource/doc/trtc/android/TRTCCloud.md +638 -2612
- package/resource/doc/trtc/android/TRTCCloudDef.md +769 -3697
- package/resource/doc/trtc/android/TRTCCloudListener.md +609 -2070
- package/resource/doc/trtc/android/TRTCStatistics.md +48 -278
- package/resource/doc/trtc/android/TXAudioEffectManager.md +207 -1049
- package/resource/doc/trtc/android/TXBeautyManager.md +127 -704
- package/resource/doc/trtc/android/TXDeviceManager.md +51 -318
- package/resource/doc/trtc/android/TXLiteAVCode.md +115 -900
- package/resource/doc/trtc/iOS/TRTCCloud.md +726 -2930
- package/resource/doc/trtc/iOS/TRTCCloudDelegate.md +580 -2099
- package/resource/doc/trtc/iOS/TRTCStatistics.md +48 -278
- package/resource/doc/trtc/iOS/TXAudioEffectManager.md +179 -896
- package/resource/doc/trtc/iOS/TXBeautyManager.md +128 -710
- package/resource/doc/trtc/iOS/TXDeviceManager.md +129 -772
- package/resource/doc/trtc/iOS/TXLiteAVCode.md +117 -915
- package/resource/doc/trtc/iOS/TXLiveSDKTypeDef.md +747 -3559
- package/server.js +1 -5
- package/server.js.map +1 -1
- package/tools/call/get_callkit_api.js +32 -0
- package/tools/call/get_callkit_api.js.map +1 -0
- package/tools/call/get_native_call_uikit_integration.js +34 -0
- package/tools/call/get_native_call_uikit_integration.js.map +1 -0
- package/tools/call/{get-web-call-integration.js → get_web_call_uikit_integration.js} +13 -8
- package/tools/call/get_web_call_uikit_integration.js.map +1 -0
- package/tools/chat/get_native_chat_uikit_feature_detail.js +34 -0
- package/tools/chat/get_native_chat_uikit_feature_detail.js.map +1 -0
- package/tools/chat/get_native_chat_uikit_integration.js +45 -0
- package/tools/chat/get_native_chat_uikit_integration.js.map +1 -0
- package/tools/chat/get_web_chat_uikit_component_detail.js +34 -0
- package/tools/chat/get_web_chat_uikit_component_detail.js.map +1 -0
- package/tools/chat/get_web_chat_uikit_integration.js +45 -0
- package/tools/chat/get_web_chat_uikit_integration.js.map +1 -0
- package/tools/common/get_faq.js +265 -0
- package/tools/common/get_faq.js.map +1 -0
- package/tools/common/{get-usersig.js → get_usersig.js} +6 -3
- package/tools/common/get_usersig.js.map +1 -0
- package/tools/common/present_framework_choice.js +63 -0
- package/tools/common/present_framework_choice.js.map +1 -0
- package/tools/definitions/get_callkit_api_def.js +28 -0
- package/tools/definitions/get_callkit_api_def.js.map +1 -0
- package/tools/definitions/get_faq_def.js +18 -19
- package/tools/definitions/get_faq_def.js.map +1 -1
- package/tools/definitions/get_native_call_uikit_integration_def.js +15 -18
- package/tools/definitions/get_native_call_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_native_chat_uikit_feature_detail_def.js +31 -0
- package/tools/definitions/get_native_chat_uikit_feature_detail_def.js.map +1 -0
- package/tools/definitions/get_native_chat_uikit_integration_def.js +16 -19
- package/tools/definitions/get_native_chat_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_native_livekit_core_features_def.js +33 -0
- package/tools/definitions/get_native_livekit_core_features_def.js.map +1 -0
- package/tools/definitions/get_native_livekit_core_integration_def.js +33 -0
- package/tools/definitions/get_native_livekit_core_integration_def.js.map +1 -0
- package/tools/definitions/get_native_trtc_sdk_docs_def.js +32 -0
- package/tools/definitions/get_native_trtc_sdk_docs_def.js.map +1 -0
- package/tools/definitions/get_usersig_def.js +17 -24
- package/tools/definitions/get_usersig_def.js.map +1 -1
- package/tools/definitions/get_web_call_uikit_integration_def.js +15 -7
- package/tools/definitions/get_web_call_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_chat_uikit_component_detail_def.js +17 -49
- package/tools/definitions/get_web_chat_uikit_component_detail_def.js.map +1 -1
- package/tools/definitions/get_web_chat_uikit_integration_def.js +16 -19
- package/tools/definitions/get_web_chat_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_live_uikit_integration_def.js +13 -18
- package/tools/definitions/get_web_live_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_livekit_api_def.js +27 -0
- package/tools/definitions/get_web_livekit_api_def.js.map +1 -0
- package/tools/definitions/get_web_livekit_component_detail_def.js +29 -0
- package/tools/definitions/get_web_livekit_component_detail_def.js.map +1 -0
- package/tools/definitions/get_web_room_uikit_integration_def.js +13 -30
- package/tools/definitions/get_web_room_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_roomkit_feature_detail_def.js +30 -0
- package/tools/definitions/get_web_roomkit_feature_detail_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_api_def.js +25 -0
- package/tools/definitions/get_web_trtc_sdk_api_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_integration_def.js +25 -0
- package/tools/definitions/get_web_trtc_sdk_integration_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_plugin_def.js +25 -0
- package/tools/definitions/get_web_trtc_sdk_plugin_def.js.map +1 -0
- package/tools/definitions/present_framework_choice_def.js +23 -12
- package/tools/definitions/present_framework_choice_def.js.map +1 -1
- package/tools/index.js +47 -59
- package/tools/index.js.map +1 -1
- package/tools/live/get_native_livekit_core_features.js +65 -0
- package/tools/live/get_native_livekit_core_features.js.map +1 -0
- package/tools/live/get_native_livekit_core_integration.js +59 -0
- package/tools/live/get_native_livekit_core_integration.js.map +1 -0
- package/tools/live/get_web_live_uikit_integration.js +48 -0
- package/tools/live/get_web_live_uikit_integration.js.map +1 -0
- package/tools/live/get_web_livekit_api.js +32 -0
- package/tools/live/get_web_livekit_api.js.map +1 -0
- package/tools/live/get_web_livekit_component_detail.js +34 -0
- package/tools/live/get_web_livekit_component_detail.js.map +1 -0
- package/tools/room/{get-web-room-integration.js → get_web_room_uikit_integration.js} +13 -14
- package/tools/room/get_web_room_uikit_integration.js.map +1 -0
- package/tools/room/{get-web-room-feature-detail.js → get_web_roomkit_feature_detail.js} +30 -31
- package/tools/room/get_web_roomkit_feature_detail.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_api.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_api.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_integration.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_integration.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_plugin.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_plugin.js.map +1 -0
- package/tools/trtc/get_native_trtc_sdk_docs.js +73 -0
- package/tools/trtc/get_native_trtc_sdk_docs.js.map +1 -0
- package/utils/generate-structured-result.js +61 -17
- package/utils/generate-structured-result.js.map +1 -1
- package/utils/report-cls-client.js +12 -1
- package/utils/report-cls-client.js.map +1 -1
- package/utils/report-es-client.js +1 -1
- package/resource/doc/chatuikit/android/integration.md +0 -612
- package/resource/doc/chatuikit/android/workflow.md +0 -0
- package/resource/doc/chatuikit/faq/android_sdk/client-api.md +0 -1376
- package/resource/doc/chatuikit/faq/flutter_sdk/client-api.md +0 -860
- package/resource/doc/chatuikit/faq/ios_sdk/client-api.md +0 -1371
- package/resource/doc/chatuikit/flutter/workflow.md +0 -816
- package/resource/doc/chatuikit/iOS/workflow.md +0 -0
- package/resource/doc/chatuikit/react/components/conversation-list.md +0 -765
- package/resource/doc/chatuikit/react/components/search.md +0 -885
- package/resource/doc/chatuikit/react/create-group.md +0 -22
- package/resource/doc/chatuikit/react/init.md +0 -25
- package/resource/doc/chatuikit/react/workflow.md +0 -254
- package/resource/doc/chatuikit/uniapp-app/faq.md +0 -0
- package/resource/doc/chatuikit/uniapp-app/integration.md +0 -619
- package/resource/doc/chatuikit/uniapp-app/workflow.md +0 -576
- package/resource/doc/chatuikit/vue/components/contact-list.md +0 -679
- package/resource/doc/chatuikit/vue/components/tuikit.md +0 -110
- package/resource/doc/chatuikit/vue/create-group.md +0 -26
- package/resource/doc/chatuikit/vue/init.md +0 -35
- package/resource/doc/chatuikit/vue/workflow.md +0 -395
- package/resource/doc/livekit/live/android/workflow.md +0 -322
- package/resource/doc/livekit/live/flutter/live-integration.md +0 -1029
- package/resource/doc/livekit/live/flutter/workflow.md +0 -353
- package/resource/doc/livekit/live/ios/workflow.md +0 -352
- package/resource/doc/livekit/live/vue/components/barrage.md +0 -615
- package/resource/doc/livekit/live/vue/components/stream-mixer.md +0 -442
- package/resource/doc/livekit/live/vue/faq.md +0 -0
- package/resource/doc/livekit/live/vue/live-list-integration.md +0 -195
- package/resource/doc/livekit/live/vue/live-player-desk-integration.md +0 -293
- package/resource/doc/livekit/live/vue/live-player-h5-integration.md +0 -381
- package/resource/doc/livekit/live/vue/live-pusher-integration.md +0 -598
- package/resource/doc/livekit/live/vue/states/live-state.md +0 -2656
- package/resource/doc/livekit/live/vue/workflow.md +0 -219
- package/resource/doc/native_live/android/V2TXLiveCode_api_android.md +0 -334
- package/resource/doc/native_live/android/V2TXLiveDef_api_android.md +0 -434
- package/resource/doc/native_live/android/V2TXLivePlayerObserver_api_android.md +0 -685
- package/resource/doc/native_live/android/V2TXLivePlayer_api_android.md +0 -712
- package/resource/doc/native_live/android/V2TXLivePremier_api_android.md +0 -284
- package/resource/doc/native_live/android/V2TXLivePusherObserver_api_android.md +0 -849
- package/resource/doc/native_live/android/V2TXLivePusher_api_android.md +0 -1046
- package/resource/doc/native_live/flutter/V2TXLiveCode_api_flutter.md +0 -460
- package/resource/doc/native_live/flutter/V2TXLiveDef_api_flutter.md +0 -558
- package/resource/doc/native_live/flutter/V2TXLivePlayerObserver_api_flutter.md +0 -879
- package/resource/doc/native_live/flutter/V2TXLivePlayer_api_flutter.md +0 -668
- package/resource/doc/native_live/flutter/V2TXLivePremier_api_flutter.md +0 -456
- package/resource/doc/native_live/flutter/V2TXLivePusherObserver_api_flutter.md +0 -332
- package/resource/doc/native_live/flutter/V2TXLivePusher_api_flutter.md +0 -748
- package/resource/doc/native_live/iOS/V2TXLiveCode_api_iOS.md +0 -328
- package/resource/doc/native_live/iOS/V2TXLiveDef_api_iOS.md +0 -505
- package/resource/doc/native_live/iOS/V2TXLivePlayerObserver_api_iOS.md +0 -507
- package/resource/doc/native_live/iOS/V2TXLivePlayer_api_iOS.md +0 -676
- package/resource/doc/native_live/iOS/V2TXLivePremier_api_iOS.md +0 -284
- package/resource/doc/native_live/iOS/V2TXLivePusherObserver_api_iOS.md +0 -820
- package/resource/doc/native_live/iOS/V2TXLivePusher_api_iOS.md +0 -1065
- package/resource/doc/roomkit/vue/features/workflow.md +0 -553
- package/resource/doc/roomkit/vue/workflow.md +0 -487
- package/resource/doc/tuicallkit/android/integration.md +0 -302
- package/resource/doc/tuicallkit/android/workflow.md +0 -0
- package/resource/doc/tuicallkit/faq/android_sdk/call-observer-api.md +0 -786
- package/resource/doc/tuicallkit/faq/android_sdk/callkit-api.md +0 -663
- package/resource/doc/tuicallkit/faq/flutter_sdk/call-define-api.md +0 -932
- package/resource/doc/tuicallkit/faq/flutter_sdk/call-observer-api.md +0 -926
- package/resource/doc/tuicallkit/faq/flutter_sdk/callkit-api.md +0 -452
- package/resource/doc/tuicallkit/faq/ios_sdk/call-observer-api.md +0 -779
- package/resource/doc/tuicallkit/faq/ios_sdk/callkit-api.md +0 -635
- package/resource/doc/tuicallkit/flutter/workflow.md +0 -331
- package/resource/doc/tuicallkit/react/api.md +0 -1512
- package/resource/doc/tuicallkit/vue/api.md +0 -1512
- package/resource/doc/tuicallkit/vue/faq.md +0 -986
- package/tools/call/get-native-call-integration.js +0 -43
- package/tools/call/get-native-call-integration.js.map +0 -1
- package/tools/call/get-web-call-api.js +0 -27
- package/tools/call/get-web-call-api.js.map +0 -1
- package/tools/call/get-web-call-integration.js.map +0 -1
- package/tools/chat/get-native-chat-feature-detail.js +0 -30
- package/tools/chat/get-native-chat-feature-detail.js.map +0 -1
- package/tools/chat/get-native-chat-integration.js +0 -45
- package/tools/chat/get-native-chat-integration.js.map +0 -1
- package/tools/chat/get-web-chat-component-detail.js +0 -31
- package/tools/chat/get-web-chat-component-detail.js.map +0 -1
- package/tools/chat/get-web-chat-integration.js +0 -45
- package/tools/chat/get-web-chat-integration.js.map +0 -1
- package/tools/chat/get-web-chat-uikit-init.js +0 -28
- package/tools/chat/get-web-chat-uikit-init.js.map +0 -1
- package/tools/chat/get-web-create-group-doc.js +0 -28
- package/tools/chat/get-web-create-group-doc.js.map +0 -1
- package/tools/common/get-faq.js +0 -91
- package/tools/common/get-faq.js.map +0 -1
- package/tools/common/get-usersig.js.map +0 -1
- package/tools/common/present-framework-choice.js +0 -16
- package/tools/common/present-framework-choice.js.map +0 -1
- package/tools/common/record-prompt.js +0 -55
- package/tools/common/record-prompt.js.map +0 -1
- package/tools/common/record-result.js +0 -60
- package/tools/common/record-result.js.map +0 -1
- package/tools/definitions/get_native_chat_feature_detail_def.js +0 -32
- package/tools/definitions/get_native_chat_feature_detail_def.js.map +0 -1
- package/tools/definitions/get_native_live_api_def.js +0 -22
- package/tools/definitions/get_native_live_api_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_extra_features_def.js +0 -109
- package/tools/definitions/get_native_live_uikit_extra_features_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_integration_def.js +0 -50
- package/tools/definitions/get_native_live_uikit_integration_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_interaction_def.js +0 -115
- package/tools/definitions/get_native_live_uikit_interaction_def.js.map +0 -1
- package/tools/definitions/get_trtc_native_api_def.js +0 -17
- package/tools/definitions/get_trtc_native_api_def.js.map +0 -1
- package/tools/definitions/get_web_call_uikit_api_def.js +0 -23
- package/tools/definitions/get_web_call_uikit_api_def.js.map +0 -1
- package/tools/definitions/get_web_chat_uikit_init_def.js +0 -23
- package/tools/definitions/get_web_chat_uikit_init_def.js.map +0 -1
- package/tools/definitions/get_web_create_group_doc_def.js +0 -18
- package/tools/definitions/get_web_create_group_doc_def.js.map +0 -1
- package/tools/definitions/get_web_live_state_detail_def.js +0 -19
- package/tools/definitions/get_web_live_state_detail_def.js.map +0 -1
- package/tools/definitions/get_web_live_uikit_component_detail_def.js +0 -27
- package/tools/definitions/get_web_live_uikit_component_detail_def.js.map +0 -1
- package/tools/definitions/get_web_room_feature_detail_def.js +0 -95
- package/tools/definitions/get_web_room_feature_detail_def.js.map +0 -1
- package/tools/definitions/record_prompt_def.js +0 -53
- package/tools/definitions/record_prompt_def.js.map +0 -1
- package/tools/definitions/record_result_def.js +0 -30
- package/tools/definitions/record_result_def.js.map +0 -1
- package/tools/live/get-native-live-uikit-integration.js +0 -101
- package/tools/live/get-native-live-uikit-integration.js.map +0 -1
- package/tools/live/get-web-live-component-detail.js +0 -31
- package/tools/live/get-web-live-component-detail.js.map +0 -1
- package/tools/live/get-web-live-state-detail.js +0 -31
- package/tools/live/get-web-live-state-detail.js.map +0 -1
- package/tools/live/get-web-live-uikit-integration.js +0 -52
- package/tools/live/get-web-live-uikit-integration.js.map +0 -1
- package/tools/live/get_native_live_uikit_extra_features.js +0 -105
- package/tools/live/get_native_live_uikit_extra_features.js.map +0 -1
- package/tools/live/get_native_live_uikit_interaction.js +0 -101
- package/tools/live/get_native_live_uikit_interaction.js.map +0 -1
- package/tools/native_live/get-native-live-api.js +0 -31
- package/tools/native_live/get-native-live-api.js.map +0 -1
- package/tools/room/get-web-room-feature-detail.js.map +0 -1
- package/tools/room/get-web-room-integration.js.map +0 -1
- package/tools/rtcengine/get-rtcengine-web-sdk-integration.js +0 -28
- package/tools/rtcengine/get-rtcengine-web-sdk-integration.js.map +0 -1
- package/tools/rtcengine/get-trtc-sdk-faq.js +0 -32
- package/tools/rtcengine/get-trtc-sdk-faq.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-api.js +0 -28
- package/tools/rtcengine/get-trtc-web-sdk-api.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-faq.js +0 -30
- package/tools/rtcengine/get-trtc-web-sdk-faq.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-integration.js +0 -29
- package/tools/rtcengine/get-trtc-web-sdk-integration.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-plugin.js +0 -45
- package/tools/rtcengine/get-trtc-web-sdk-plugin.js.map +0 -1
- package/tools/trtc/get-trtc-native-api.js +0 -31
- package/tools/trtc/get-trtc-native-api.js.map +0 -1
- package/utils/handle-component-name.js +0 -33
- package/utils/handle-component-name.js.map +0 -1
- /package/resource/doc/{rtcengine/web → callkit/core-sdk}/.gitkeep +0 -0
- /package/resource/doc/{chatuikit → chatkit}/faq/common/server_error_code.md +0 -0
- /package/resource/doc/{chatuikit → chatkit}/flutter/faq.md +0 -0
- /package/resource/doc/{chatuikit → chatkit}/react/faq.md +0 -0
|
@@ -0,0 +1,498 @@
|
|
|
1
|
+
TUIKit Compose 是基于腾讯云 IM SDK 的一套 Jetpack Compose 组件库,提供了聊天、会话列表、联系人管理等即时通信功能的完整解决方案。本文介绍如何手动集成该组件并实现核心功能。
|
|
2
|
+
|
|
3
|
+
## 关键概念
|
|
4
|
+
|
|
5
|
+
TUIKit Compose 提供了一套完整的即时通信 UI 组件,向下依赖 AtomicXCore 数据层,向上可构建各种功能性 Page。
|
|
6
|
+
- Page 层:基于 TUIKit Compose 组件封装的完整功能页面:ChatPage、ContactsPage、ConversationsPage,您可以直接使用。
|
|
7
|
+
|
|
8
|
+
- TUIKit Compose(UI 组件层):基于 AtomicXCore 构建的 Jetpack Compose 组件,您可将其嵌套到自己已有的 App 页面中。
|
|
9
|
+
|
|
10
|
+
- AtomicXCore(数据层):提供数据管理和业务逻辑,包含各种 Store 和 Manager。
|
|
11
|
+
|
|
12
|
+
## 前提条件
|
|
13
|
+
- Android Studio Ladybug | 2024.2.1 及以上版本
|
|
14
|
+
|
|
15
|
+
- Android 5.0 及以上系统版本
|
|
16
|
+
|
|
17
|
+
- Gradle 8.9 及以上版本
|
|
18
|
+
|
|
19
|
+
- Android Gradle Plugin 8.6 及以上版本
|
|
20
|
+
|
|
21
|
+
- JDK 17 及以上版本
|
|
22
|
+
|
|
23
|
+
- Kotlin 1.9.0 及以上版本
|
|
24
|
+
|
|
25
|
+
- 一个有效的腾讯云账号及 Chat 应用。可参考 开通服务 从控制台获取以下信息:
|
|
26
|
+
|
|
27
|
+
- SDKAppID:App 在控制台获取的 Chat 应用的 ID,为应用的唯一标识
|
|
28
|
+
|
|
29
|
+
- SDKSecretKey:应用的密钥
|
|
30
|
+
|
|
31
|
+
> **说明:**
|
|
32
|
+
>
|
|
33
|
+
> - 本项目目前仅支持手动集成,暂不支持通过 Maven 等包管理器集成。
|
|
34
|
+
> - 为确保构建环境稳定,请严格遵循官方兼容性要求进行配置:
|
|
35
|
+
> - Gradle、Android Gradle Plugin、JDK 与 Android Studio 的兼容性,请参阅 Android 官方文档:[版本说明](https://developer.android.com/build/releases/gradle-plugin#updating-gradle)。
|
|
36
|
+
> - Kotlin、Android Gradle Plugin 与 Gradle 的版本对应关系,请参阅 Kotlin 官方文档:[Kotlin-Gradle 插件兼容性](https://kotlinlang.org/docs/gradle-configure-project.html#apply-the-plugin)。
|
|
37
|
+
|
|
38
|
+
> 我们建议您根据上述指南,选择与项目要求完全匹配的版本组合。
|
|
39
|
+
>
|
|
40
|
+
|
|
41
|
+
## 集成并引入组件
|
|
42
|
+
|
|
43
|
+
### 下载源码
|
|
44
|
+
1. 从 GitHub 下载 [TUIKit Compose](https://github.com/Tencent-RTC/TUIKit_android_compose) 源码:
|
|
45
|
+
|
|
46
|
+
``` bash
|
|
47
|
+
git clone https://github.com/Tencent-RTC/TUIKit_Android_Compose.git
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
项目目录结构说明:
|
|
51
|
+
|
|
52
|
+
``` bash
|
|
53
|
+
atomic-x/
|
|
54
|
+
├── src/main/
|
|
55
|
+
│ ├── java/io/trtc/tuikit/atomicx/ # UI 组件源码(必需集成)
|
|
56
|
+
│ ├── messagelist/ # 消息列表组件
|
|
57
|
+
│ ├── messageinput/ # 消息输入组件
|
|
58
|
+
│ ├── conversationlist/ # 会话列表组件
|
|
59
|
+
│ ├── contactlist/ # 联系人列表组件
|
|
60
|
+
│ ├── basecomponent/ # 基础组件
|
|
61
|
+
│ └── ... # 其他 UI 组件
|
|
62
|
+
│ # 资源文件(必需集成)
|
|
63
|
+
│ ├── res/ # 公共资源
|
|
64
|
+
│ ├── res-message-list/ # 消息列表组件资源
|
|
65
|
+
│ ├── res-message-input/ # 消息输入组件资源
|
|
66
|
+
│ ├── res-conversation-list/ # 会话列表组件资源
|
|
67
|
+
│ └── ... # 其他组件资源
|
|
68
|
+
chat/
|
|
69
|
+
├── uikit/src/main/java/io/trtc/tuikit/chat/pages # Page 组件(参考实现)
|
|
70
|
+
│ ├── ChatPage.kt
|
|
71
|
+
│ ├── ContactsPage.kt
|
|
72
|
+
│ └── ConversationsPage.kt
|
|
73
|
+
└── demo/ # 示例应用(可选参考)
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### 集成组件
|
|
77
|
+
1. 将组件目录完整复制到您的 Android 项目中,如下图所示,其中 ComposeDemo 是示例项目,TUIKit_Android_Compose 是从 GitHub 上下载的组件源码:
|
|
78
|
+
|
|
79
|
+
2. 在您的 settings.gradle.kts/settings.gradle 文件中添加 TUIKit Compose 组件:
|
|
80
|
+
|
|
81
|
+
> **说明:**
|
|
82
|
+
>
|
|
83
|
+
|
|
84
|
+
> TUIKit_Android_Compose 可以放在任何位置,只要在 settings.gradle 中正确设置相对路径即可。
|
|
85
|
+
>
|
|
86
|
+
|
|
87
|
+
【Kotlin DSL (推荐)】
|
|
88
|
+
``` java
|
|
89
|
+
// settings.gradle.kts
|
|
90
|
+
include(":atomicx")
|
|
91
|
+
project(":atomicx").projectDir = file("../TUIKit_Android_Compose/atomic-x")
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
【Groovy DSL】
|
|
95
|
+
``` java
|
|
96
|
+
// settings.gradle
|
|
97
|
+
include ':atomicx'
|
|
98
|
+
project(':atomicx').projectDir = new File(settingsDir, '../TUIKit_Android_Compose/atomic-x')
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
3. 在 app 模块的 build.gradle.kts/build.gradle 中添加下列依赖:
|
|
102
|
+
|
|
103
|
+
【Kotlin DSL (推荐)】
|
|
104
|
+
``` java
|
|
105
|
+
// app/build.gradle.kts
|
|
106
|
+
dependencies {
|
|
107
|
+
implementation(project(":atomicx"))
|
|
108
|
+
}
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
【Groovy DSL】
|
|
112
|
+
``` java
|
|
113
|
+
// app/build.gradle
|
|
114
|
+
dependencies {
|
|
115
|
+
api project(':atomicx')
|
|
116
|
+
}
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
> **注意:**
|
|
120
|
+
>
|
|
121
|
+
> - 使用本地集成方案时,如需升级时需要从 GitHub 获取最新的组件代码,覆盖您本地项目的 TUIKit Compose 目录。
|
|
122
|
+
> - 当私有化修改和远端有冲突时,需要手动合并,处理冲突。
|
|
123
|
+
|
|
124
|
+
### 配置项目
|
|
125
|
+
1. 在 app 目录下找到 AndroidManifest.xml 文件,在 `application` 节点中添加 `tools:replace="android:allowBackup"`,覆盖组件内的设置,使用自己的设置。
|
|
126
|
+
|
|
127
|
+
``` java
|
|
128
|
+
// app/src/main/AndroidManifest.xml
|
|
129
|
+
<application
|
|
130
|
+
android:name=".BaseApplication"
|
|
131
|
+
android:allowBackup="false"
|
|
132
|
+
android:icon="@drawable/app_ic_launcher"
|
|
133
|
+
android:label="@string/app_name"
|
|
134
|
+
android:largeHeap="true"
|
|
135
|
+
android:theme="@style/AppTheme"
|
|
136
|
+
tools:replace="android:allowBackup">
|
|
137
|
+
```
|
|
138
|
+
2. 配置依赖项。
|
|
139
|
+
|
|
140
|
+
在您的项目工程的 gradle/libs.versions.toml 文件中添加如下依赖项:
|
|
141
|
+
|
|
142
|
+
``` python
|
|
143
|
+
# gradle/libs.versions.toml
|
|
144
|
+
[versions]
|
|
145
|
+
agp = "8.13.0"
|
|
146
|
+
kotlin = "2.0.21"
|
|
147
|
+
coreKtx = "1.10.1"
|
|
148
|
+
junit = "4.13.2"
|
|
149
|
+
junitVersion = "1.1.5"
|
|
150
|
+
espressoCore = "3.5.1"
|
|
151
|
+
appcompat = "1.7.1"
|
|
152
|
+
material = "1.13.0"
|
|
153
|
+
runner = "1.0.2"
|
|
154
|
+
espressoCoreVersion = "3.0.2"
|
|
155
|
+
appcompatV7 = "28.0.0"
|
|
156
|
+
|
|
157
|
+
tuicore = "8.6.7021"
|
|
158
|
+
lifecycleRuntimeKtx = "2.8.7"
|
|
159
|
+
ui = "1.8.0"
|
|
160
|
+
foundation = "1.8.0"
|
|
161
|
+
composeBom = "2024.09.00"
|
|
162
|
+
activityCompose = "1.10.1"
|
|
163
|
+
activity = "1.8.0"
|
|
164
|
+
constraintlayout = "2.2.1"
|
|
165
|
+
|
|
166
|
+
[libraries]
|
|
167
|
+
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
|
|
168
|
+
junit = { group = "junit", name = "junit", version.ref = "junit" }
|
|
169
|
+
androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
|
|
170
|
+
androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
|
|
171
|
+
androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
|
|
172
|
+
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
|
|
173
|
+
runner = { group = "com.android.support.test", name = "runner", version.ref = "runner" }
|
|
174
|
+
espresso-core = { group = "com.android.support.test.espresso", name = "espresso-core", version.ref = "espressoCoreVersion" }
|
|
175
|
+
appcompat-v7 = { group = "com.android.support", name = "appcompat-v7", version.ref = "appcompatV7" }
|
|
176
|
+
|
|
177
|
+
androidx-lifecycle-viewmodel-compose = { module = "androidx.lifecycle:lifecycle-viewmodel-compose", version.ref = "lifecycleRuntimeKtx" }
|
|
178
|
+
androidx-compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "composeBom" }
|
|
179
|
+
androidx-compose-foundation = { group = "androidx.compose.foundation", name = "foundation", version.ref = "foundation" }
|
|
180
|
+
androidx-compose-ui = { group = "androidx.compose.ui", name = "ui", version.ref = "ui" }
|
|
181
|
+
androidx-compose-ui-graphics = { group = "androidx.compose.ui", name = "ui-graphics" }
|
|
182
|
+
androidx-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" }
|
|
183
|
+
androidx-compose-material3 = { group = "androidx.compose.material3", name = "material3" }
|
|
184
|
+
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activityCompose" }
|
|
185
|
+
androidx-lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "lifecycleRuntimeKtx" }
|
|
186
|
+
androidx-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" }
|
|
187
|
+
androidx-ui-test-manifest = { group = "androidx.compose.ui", name = "ui-test-manifest" }
|
|
188
|
+
tuicore = { module = "com.tencent.liteav.tuikit:tuicore", version.ref = "tuicore" }
|
|
189
|
+
com-tencent-mmkv = { group = "com.tencent", name = "mmkv", version = "1.3.14" }
|
|
190
|
+
|
|
191
|
+
[plugins]
|
|
192
|
+
android-application = { id = "com.android.application", version.ref = "agp" }
|
|
193
|
+
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
|
|
194
|
+
android-library = { id = "com.android.library", version.ref = "agp" }
|
|
195
|
+
|
|
196
|
+
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
|
|
197
|
+
```
|
|
198
|
+
3. 开启 Compose 支持。
|
|
199
|
+
|
|
200
|
+
在 app 模块的 build.gradle.kts/build.gradle 中添加下列配置:
|
|
201
|
+
|
|
202
|
+
【Kotlin DSL (推荐)】
|
|
203
|
+
``` java
|
|
204
|
+
// app/build.gradle.kts
|
|
205
|
+
plugins {
|
|
206
|
+
// 添加 Compose 插件
|
|
207
|
+
alias(libs.plugins.kotlin.compose)
|
|
208
|
+
}
|
|
209
|
+
android {
|
|
210
|
+
// 开启 Compose
|
|
211
|
+
buildFeatures {
|
|
212
|
+
compose = true
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
【Groovy DSL】
|
|
218
|
+
``` java
|
|
219
|
+
// app/build.gradle
|
|
220
|
+
plugins {
|
|
221
|
+
// 添加 Compose 插件
|
|
222
|
+
id libs.plugins.kotlin.compose.get().pluginId
|
|
223
|
+
}
|
|
224
|
+
android {
|
|
225
|
+
// 开启 Compose
|
|
226
|
+
buildFeatures {
|
|
227
|
+
compose true
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
4. 配置混淆规则。
|
|
233
|
+
|
|
234
|
+
在您的 app/proguard-rules.pro 文件中添加以下混淆规则:
|
|
235
|
+
|
|
236
|
+
``` java
|
|
237
|
+
-keep class com.tencent.** { *; }
|
|
238
|
+
```
|
|
239
|
+
5. Android Studio 中点击 **File > Sync Project with Gradle Files** 集成组件。
|
|
240
|
+
|
|
241
|
+
## 接入步骤
|
|
242
|
+
|
|
243
|
+
### 步骤1:配置用户鉴权
|
|
244
|
+
|
|
245
|
+
在 [即时通信 IM 控制台](https://console.cloud.tencent.com/im/tool-usersig) 根据 UserID 获取 UserSig 用于后续登录时的用户鉴权。
|
|
246
|
+
|
|
247
|
+
### 步骤2:用户登录
|
|
248
|
+
|
|
249
|
+
登录鉴权后才能正常使用组件的功能。您可以调用 login 接口,传入上文获取的 SDKAPPID、userSig 用于登录鉴权:
|
|
250
|
+
``` swift
|
|
251
|
+
// 用户登录
|
|
252
|
+
LoginStore.shared.login(context, SDKAPPID, userID, userSig,
|
|
253
|
+
object : CompletionHandler {
|
|
254
|
+
override fun onSuccess() {
|
|
255
|
+
// 登录成功,可跳转聊天或会话页
|
|
256
|
+
}
|
|
257
|
+
override fun onFailure(code: Int, desc: String) {
|
|
258
|
+
// 登录失败,可弹框报错
|
|
259
|
+
}
|
|
260
|
+
})
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
> **注意:**
|
|
264
|
+
>
|
|
265
|
+
|
|
266
|
+
> 在正式的生产环境中,建议在您的服务端生成 UserSig,在需要 UserSig 时由您的 App 向业务服务器发起请求获取动态 UserSig 来进行鉴权。详见 [服务端生成 UserSig](https://cloud.tencent.com/document/product/269/32688)。
|
|
267
|
+
>
|
|
268
|
+
|
|
269
|
+
### 步骤3: 构建会话列表界面
|
|
270
|
+
|
|
271
|
+
您可以基于 TUIKit Compose 中的 ConversationList 组件,构建一个会话列表页面。ConversationList 内建的功能是:
|
|
272
|
+
- 展示用户的会话列表,包含单聊和群聊会话
|
|
273
|
+
|
|
274
|
+
- 支持用户操作单个会话:置顶、删除、清空会话消息等
|
|
275
|
+
|
|
276
|
+
您可以将 ConversationList 直接集成到现有的 App 页面中,也可以新构建一个完整的会话列表页,组装后的一种 UI 效果如下图所示:
|
|
277
|
+
|
|
278
|
+
将 ConversationList 封装为会话列表页,可参考 `chat/uikit/src/main/java/io/trtc/tuikit/chat/pages/ConversationsPage.kt` 文件里的实现,`ConversationsPage` 主要做了以下工作:
|
|
279
|
+
|
|
280
|
+
1. 在 ConversationList 上方添加了 headerView。
|
|
281
|
+
|
|
282
|
+
2. 传递点击会话列表 cell 事件。
|
|
283
|
+
|
|
284
|
+
核心示例代码如下所示:
|
|
285
|
+
|
|
286
|
+
``` swift
|
|
287
|
+
@Composable
|
|
288
|
+
fun ConversationsPage(
|
|
289
|
+
onConversationClick: (ConversationInfo) -> Unit = {},
|
|
290
|
+
editContent: @Composable () -> Unit = {},
|
|
291
|
+
) {
|
|
292
|
+
val colors = LocalTheme.current.colors
|
|
293
|
+
Column(
|
|
294
|
+
modifier = Modifier
|
|
295
|
+
.fillMaxSize()
|
|
296
|
+
.background(Colors.Transparent)
|
|
297
|
+
) {
|
|
298
|
+
|
|
299
|
+
PageHeader(stringResource(R.string.chat_uikit_chat)) {
|
|
300
|
+
editContent()
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
Box(modifier = Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {
|
|
304
|
+
ConversationList(modifier = Modifier.navigationBarsPadding(), onConversationClick = onConversationClick)
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
### 步骤4:构建聊天界面
|
|
311
|
+
|
|
312
|
+
您可以基于 TUIKit Compose 中的 MessageList、MessageInput 组件,构建一个聊天页面。
|
|
313
|
+
|
|
314
|
+
MessageList 内建的功能是:
|
|
315
|
+
- 展示单聊或群聊消息列表。
|
|
316
|
+
|
|
317
|
+
- 支持对单条消息操作:查看图片消息大图、播放视频或语音消息、复制文本消息、撤回消息、删除消息等。
|
|
318
|
+
|
|
319
|
+
MessageInput 内建的功能是:
|
|
320
|
+
|
|
321
|
+
- 支持用户组建并发送多种类型的消息:文本、表情、图片、语音、视频、文件等。
|
|
322
|
+
|
|
323
|
+
您可以将 MessageList 和 MessageInput 直接集成到现有的 App 页面中,也可以新构建一个完整的聊天页,组装后的一种 UI 效果如下图所示:
|
|
324
|
+
|
|
325
|
+
将 MessageList 和 MessageInput 组装为聊天页,可参考 `chat/uikit/src/main/java/io/trtc/tuikit/chat/pages/ChatPage.kt` 文件里的实现,`ChatPage` 主要做了以下工作:
|
|
326
|
+
|
|
327
|
+
1. 在最上方添加了 headerView,展示会话的名称。
|
|
328
|
+
|
|
329
|
+
2. 按照移动端用户使用习惯,上下拼接 MessageList 和 MessageInput。
|
|
330
|
+
|
|
331
|
+
核心示例代码如下所示:
|
|
332
|
+
|
|
333
|
+
``` swift
|
|
334
|
+
@Composable
|
|
335
|
+
fun ChatPage(
|
|
336
|
+
conversationID: String,
|
|
337
|
+
locateMessage: MessageInfo? = null,
|
|
338
|
+
onUserClick: (String) -> Unit,
|
|
339
|
+
onChatHeaderClick: (String) -> Unit,
|
|
340
|
+
onBackClick: () -> Unit,
|
|
341
|
+
) {
|
|
342
|
+
...
|
|
343
|
+
|
|
344
|
+
val avatarUrl = conversationState.value?.avatarURL
|
|
345
|
+
val displayName = conversationState.value?.title
|
|
346
|
+
val colors = LocalTheme.current.colors
|
|
347
|
+
Scaffold(
|
|
348
|
+
modifier = Modifier
|
|
349
|
+
.background(color = colors.bgColorOperate)
|
|
350
|
+
.fillMaxSize()
|
|
351
|
+
.wrapContentHeight(), topBar = {
|
|
352
|
+
Box(
|
|
353
|
+
modifier = Modifier
|
|
354
|
+
.background(color = colors.bgColorOperate)
|
|
355
|
+
.fillMaxWidth()
|
|
356
|
+
.statusBarsPadding()
|
|
357
|
+
) {
|
|
358
|
+
ChatHeader(
|
|
359
|
+
avatarUrl = avatarUrl,
|
|
360
|
+
name = displayName ?: "",
|
|
361
|
+
onBackClick = onBackClick,
|
|
362
|
+
onAvatarClick = {
|
|
363
|
+
onChatHeaderClick(conversationID)
|
|
364
|
+
}
|
|
365
|
+
)
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
bottomBar = {
|
|
369
|
+
Box(
|
|
370
|
+
modifier = Modifier
|
|
371
|
+
.fillMaxWidth()
|
|
372
|
+
.background(color = colors.bgColorOperate)
|
|
373
|
+
) {
|
|
374
|
+
MessageInput(modifier = Modifier.navigationBarsPadding(), conversationID = conversationID)
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
}) { padding ->
|
|
378
|
+
Box(
|
|
379
|
+
modifier = Modifier
|
|
380
|
+
.padding(padding)
|
|
381
|
+
) {
|
|
382
|
+
MessageList(conversationID = conversationID, locateMessage = locateMessage) {
|
|
383
|
+
onUserClick(it)
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
### 步骤5:构建联系人界面
|
|
391
|
+
|
|
392
|
+
您可以基于 TUIKit Compose 中的 ContactList 组件,构建一个联系人页面。ContactList 内建的功能是:
|
|
393
|
+
- 查看好友申请列表。
|
|
394
|
+
|
|
395
|
+
- 查看已加入的群列表。
|
|
396
|
+
|
|
397
|
+
- 处理群组邀请和申请。
|
|
398
|
+
|
|
399
|
+
- 管理黑名单列表。
|
|
400
|
+
|
|
401
|
+
- 查看好友。
|
|
402
|
+
|
|
403
|
+
您可以将 ContactList 直接集成到现有的 App 中,也可以新构建一个完整的联系人列表页,组装后的一种 UI 效果如下图所示:
|
|
404
|
+
|
|
405
|
+
将 ContactList 封装为联系人列表页,可参考 `chat/uikit/src/main/java/io/trtc/tuikit/chat/pages/ContactsPage.kt `文件里的实现,`ContactsPage` 主要做了以下工作:
|
|
406
|
+
|
|
407
|
+
1. 在 ContactList 上方添加了 headerView。
|
|
408
|
+
|
|
409
|
+
2. 传递点击联系人列表 cell 事件。
|
|
410
|
+
|
|
411
|
+
核心示例代码如下所示:
|
|
412
|
+
|
|
413
|
+
``` swift
|
|
414
|
+
@Composable
|
|
415
|
+
fun ContactsPage(
|
|
416
|
+
onContactClick: (ContactInfo) -> Unit = {},
|
|
417
|
+
onGroupClick: (ContactInfo) -> Unit = {},
|
|
418
|
+
editContent: @Composable () -> Unit = {},
|
|
419
|
+
) {
|
|
420
|
+
|
|
421
|
+
val colors = LocalTheme.current.colors
|
|
422
|
+
Column(
|
|
423
|
+
modifier = Modifier
|
|
424
|
+
.fillMaxSize()
|
|
425
|
+
.background(Colors.Transparent)
|
|
426
|
+
) {
|
|
427
|
+
PageHeader(stringResource(R.string.chat_uikit_contacts)) {
|
|
428
|
+
editContent()
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
Box(
|
|
432
|
+
modifier = Modifier
|
|
433
|
+
.fillMaxSize()
|
|
434
|
+
.navigationBarsPadding(), contentAlignment = Alignment.Center
|
|
435
|
+
) {
|
|
436
|
+
ContactList(onGroupClick = onGroupClick, onContactClick = onContactClick)
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
### 步骤6:完善界面间的跳转逻辑
|
|
443
|
+
|
|
444
|
+
ConversationsPage、ChatPage、ContactsPage 中暴露了一些用户点击事件,您可以自定义事件来实现页面间的交互:
|
|
445
|
+
| Page | 回调 | 建议跳转逻辑 |
|
|
446
|
+
| --- | --- | --- |
|
|
447
|
+
| **ConversationsPage** | `onConversationClick: (ConversationInfo) -> Unit` | 点击会话列表中的会话时触发,建议跳转到聊天页面(ChatPage)。 |
|
|
448
|
+
| **ContactsPage** | `onContactClick: (ContactInfo) -> Unit` | 点击联系人 cell 时触发,建议跳转用户信息页(C2CChatSetting)。 |
|
|
449
|
+
| `onGroupClick: (ContactInfo) -> Unit` | 点击群组 cell 时触发,建议跳转群聊页面(ChatPage)。 | |
|
|
450
|
+
| **ChatPage** | `onUserClick: (String) -> Unit` | 点击消息中的用户头像或昵称时触发,建议跳转用户信息页(C2CChatSetting)。 |
|
|
451
|
+
| `onChatHeaderClick: (String) -> Unit` | 点击导航栏中的头像时触发,建议跳转用户信息页(C2CChatSetting)或群聊信息页(GroupChatSetting) | |
|
|
452
|
+
| `onBackClick: () -> Unit` | 点击返回按钮时触发,建议返回上一级页面。 | |
|
|
453
|
+
|
|
454
|
+
**chat/demo/app/src/main/java/io/trtc/tuikit/chat/MainActivity.kt **和 **chat/demo/app/src/main/java/io/trtc/tuikit/chat/chat/ChatActivity.kt** 作为上述 Page 的粘合层,实现了各个 Page 的回调事件,核心示例代码如下:
|
|
455
|
+
``` java
|
|
456
|
+
// chat/demo/app/src/main/java/io/trtc/tuikit/chat/MainActivity.kt
|
|
457
|
+
|
|
458
|
+
// 点击会话列表 cell 跳转
|
|
459
|
+
ConversationsPage(onConversationClick = {
|
|
460
|
+
activity?.startActivity(
|
|
461
|
+
Intent(activity, ChatActivity::class.java).apply {
|
|
462
|
+
putExtra("conversationID", it.conversationID)
|
|
463
|
+
}
|
|
464
|
+
)
|
|
465
|
+
})
|
|
466
|
+
|
|
467
|
+
// 点击联系人页面跳转
|
|
468
|
+
ContactsPage(onGroupClick = {
|
|
469
|
+
ChatSettingActivity.start(context, "", it.contactID, true)
|
|
470
|
+
}, onContactClick = {
|
|
471
|
+
ChatSettingActivity.start(context, it.contactID, "", true)
|
|
472
|
+
})
|
|
473
|
+
```
|
|
474
|
+
``` java
|
|
475
|
+
// chat/demo/app/src/main/java/io/trtc/tuikit/chat/chat/ChatActivity.kt
|
|
476
|
+
|
|
477
|
+
// 点击聊天页面跳转
|
|
478
|
+
ChatPage(
|
|
479
|
+
conversationID = conversationID,
|
|
480
|
+
locateMessage = message,
|
|
481
|
+
onUserClick = {
|
|
482
|
+
handleChatSettingNavigation(it)
|
|
483
|
+
}, onChatHeaderClick = {
|
|
484
|
+
val userID = getUserID(conversationID)
|
|
485
|
+
val groupID = getGroupID(conversationID)
|
|
486
|
+
handleChatSettingNavigation(userID, groupID)
|
|
487
|
+
}, onBackClick = { finish() })
|
|
488
|
+
```
|
|
489
|
+
|
|
490
|
+
您可以参考上述回调说明及参考代码,实现 Page 之间交互逻辑。
|
|
491
|
+
|
|
492
|
+
## 常见问题
|
|
493
|
+
|
|
494
|
+
### 功能常见问题
|
|
495
|
+
|
|
496
|
+
**登录失败,提示签名错误**
|
|
497
|
+
|
|
498
|
+
请检查 SDKAppID 和 UserSig 是否正确,UserSig 是否已过期。可以参考上文 配置用户鉴权 重新生成 UserSig。
|