Unfollowed Status | Followed Status | Broadcaster Info Panel |
![]() | ![]() | ![]() |
Android/tuilivekit/src/Main/java/com/trtc/uikit/livekit/common/uicomponent/roominfo
directory to achieve your desired UI effects. For easier customization of the UI, here is an introduction to files related to the follow feature.// File location:Android/tuilivekit/src/Main/java/com/trtc/uikit/livekit/common/uicomponent/
roominfo // Directory for implementing the live room information UI component├── RoomInfoDetailView.java // Specific implementation of the Live Room Information Details Panel View└── RoomInfoView.java // Specific implementation of the Live Room Information View. Clicking this view will show the Details Panel View
// File location: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) { } });
// File location: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) { } });
// File location: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) { } });
// File location: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) { } });
Was this page helpful?