未关注状态 | 关注状态 | 主播信息面板 |
![]() | ![]() | ![]() |
Android/tuilivekit/src/Main/java/com/trtc/uikit/livekit/common/uicomponent/roominfo
目录下的源代码,来实现您满意的 UI 效果。为了您更方便的定制 UI,这里对关注功能相关的文件做了介绍。// 文件位置:Android/tuilivekit/src/Main/java/com/trtc/uikit/livekit/common/uicomponent/
roominfo // 直播间信息UI组件的实现目录├── RoomInfoDetailView.java // 直播间信息详情面板视图的具体实现└── RoomInfoView.java // 直播间信息视图的具体实现,点击该视图,会展示详情面板视图
// 文件位置:Android/tuilivekit
/src/Main/java/com/trtc/uikit/livekit/service/impl/LiveServiceImpl.javaList<String> userIDList = new ArrayList<>(); userIDList.add("userId");V2TIMManager.getFriendshipManager().followUser(userIDList, new V2TIMValueCallback<List<V2TIMFollowOperationResult>>() { @Override public void onSuccess(List<V2TIMFollowOperationResult> results) { } @Override public void onError(int code, String message) { } });
// 文件位置:Android/tuilivekit
/src/Main/java/com/trtc/uikit/livekit/service/impl/LiveServiceImpl.javaList<String> userIDList = new ArrayList<>(); userIDList.add("userId");V2TIMManager.getFriendshipManager().unfollowUser(userIDList, new V2TIMValueCallback<List<V2TIMFollowOperationResult>>() { @Override public void onSuccess(List<V2TIMFollowOperationResult> results) { } @Override public void onError(int code, String message) { } });
// 文件位置:Android/tuilivekit
/src/Main/java/com/trtc/uikit/livekit/service/impl/LiveServiceImpl.javaList<String> userIDList = new ArrayList<>(); userIDList.add("userId");V2TIMManager.getFriendshipManager().checkFollowType(userIDList, new V2TIMValueCallback<List<V2TIMFollowTypeCheckResult>>() { @Override public void onSuccess(List<V2TIMFollowTypeCheckResult> results) { } @Override public void onError(int code, String message) { } });
// 文件位置:Android/tuilivekit
/src/Main/java/com/trtc/uikit/livekit/service/impl/LiveServiceImpl.javaList<String> userIDList = new ArrayList<>(); userIDList.add("userId");V2TIMManager.getFriendshipManager().getUserFollowInfo(userIDList, new V2TIMValueCallback<List<V2TIMFollowInfo>>() { @Override public void onSuccess(List<V2TIMFollowInfo> results) { } @Override public void onError(int code, String message) { } });
本页内容是否解决了您的问题?