Audience List Component | Click Component to Display Online Audience Details Panel | Effect Display after Integration |
![]() | ![]() | ![]() |

settings.gradle.kts (or settings.gradle) file in the project root directory: add the jitpack repository dependency (to download the SVGAPlayer third-party library for playing gift svg animations).dependencyResolutionManagement {repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)repositories {google()mavenCentral()// Add jitpack repository urlmaven { url = uri("https://jitpack.io") }}}
dependencyResolutionManagement {repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)repositories {google()mavenCentral()// Add jitpack repository urlmaven { url 'https://jitpack.io' }}}
settings.gradle.kts (or settings.gradle) file in the project root directory. It enables importing the downloaded tuilivekit component into your current project:include(":tuilivekit")
include ':tuilivekit'
build.gradle.kts (or build.gradle) file under the app directory and add the following code in it. It enables declaring the current app's dependency on the newly joined tuilivekit component:api(project(":tuilivekit"))
api project(':tuilivekit')
TRTC SDK, IM SDK, tuiroomengine, and the public library tuicore by default. Developers do not need to separately configure them. If needed, just modify the tuilivekit/build.gradle file to upgrade.proguard-rules.pro file:-keep class com.tencent.** { *; }-keep class com.trtc.uikit.livekit.livestreamcore.** { *; }-keep class com.trtc.uikit.livekit.component.gift.store.model.** { *; }-keep class com.squareup.wire.** { *; }-keep class com.opensource.svgaplayer.proto.** { *; }-keep class com.tcmediax.** { *; }-keep class com.tencent.** { *; }-keep class com.tencent.xmagic.** { *; }-keep class androidx.exifinterface.** {*;}-keep class com.google.gson.** { *;}# Tencent Effect SDK - beauty-keep class com.tencent.xmagic.** { *;}-keep class org.light.** { *;}-keep class org.libpag.** { *;}-keep class org.extra.** { *;}-keep class com.gyailib.**{ *;}-keep class com.tencent.cloud.iai.lib.** { *;}-keep class com.tencent.beacon.** { *;}-keep class com.tencent.qimei.** { *;}-keep class androidx.exifinterface.** { *;}
AndroidManifest.xml file under the app directory, add tools:replace="android:allowBackup" and android:allowBackup="false" in the application node, overwrite the setting within component, and use your own setting.// app/src/main/AndroidManifest.xml<application...// add the following configuration to overwrite the configuration in the dependent sdkandroid:allowBackup="false"tools:replace="android:allowBackup">
AudienceList and Common folders on GitHub to your local system.
pod 'TUIAudienceList' and pod 'TUILiveResources' in your Podfile.target 'xxxx' do......pod 'TUILiveResources', :path => '../Component/Common/TUILiveResources.podspec'// The path is the relative path between your Podfile file and TUILiveResources.podspec file.pod 'TUIAudienceList', :path => '../Component/AudienceList/TUIAudienceList.podspec'// The path is the relative path between your Podfile file and TUIAudienceList.podspec file.end
Podfile file, first use the terminal to cd into the xxxx.xcodeproj directory, then create it with the following command:pod init
cd to the Podfile directory, then execute the following commands to install components.pod install
AudienceListView audienceListView = new AudienceListView(getContext());
<com.trtc.uikit.livekit.component.audiencelist.AudienceListViewandroid:id="@+id/audience_list_view"android:layout_width="135dp"android:layout_height="24dp"android:layout_gravity="end" />
import TUIAudienceListlet audienceListView = AudienceListView()// ...Add audienceListView to your parent view here and adjust the layout
enterRoomSuccessNotifier.value to true after success.final enterRoomSuccessNotifier = ValueNotifer(false);// change enterRoomSuccessNotifier.value to true after enter room successValueListenableBuilder(valueListenable: enterRoomSuccessNotifier,builder: (context, enterRoomSuccess, _) {return Visibility(visible: enterRoomSuccess,child: AudienceListWidget(roomId: 'replace with your roomId',),);}),
init method of the AudienceListView to bind data and events for the component.audienceListView.init(roomInfo);
initialize method of the AudienceListView to bind data and events for the component.audienceListView.initialize(roomInfo: roomInfo)
Feedback