Group Administrator Page
tip
This feature is supported starting from version 5.12.2.
Activate the Service
Before using this feature, you must activate the User Profile Hosting service in the Console.
Group Administrator List Page
The Group Administrator List Page displays and manages the list of group administrators, including adding and removing administrators. Below are detailed descriptions of the related components:
- GroupManagerListActivity: The container class for the group administrator list page, responsible for loading and displaying
GroupManagerListFragment
. - GroupManagerListFragment: The core component of the group administrator list page, responsible for displaying the administrator list and handling add/remove operations.
- GroupManagerListViewModel: The class for data and business logic processing, responsible for fetching and updating group administrator information from the server.
- XML Layout:
rc_page_group_manager_list.xml

Launch the Group Administrator List Page
ConversationIdentifier conversationIdentifier = getConversationIdentifier();
GroupMemberRole groupMemberRole = GroupMemberRole.xxx; // Current user's group role
startActivity(GroupManagerListActivity.newIntent(this, conversationIdentifier, groupMemberRole));
Customization
// Customize CustomGroupManagerListFragment
public class CustomGroupManagerListFragment extends GroupManagerListFragment {
/**
* Open the Add Group Administrator page
*
* @param conversationIdentifier Conversation identifier
* @param userIdList List of user IDs
*/
protected void addGroupManager(
ConversationIdentifier conversationIdentifier, List<String> userIdList) {
super.addGroupManager(conversationIdentifier, userIdList);
}
/**
* Remove a group administrator
*
* @param groupId Group ID
* @param groupMemberInfo Group member information
*/
protected void onRemoveGroupManager(String groupId, GroupMemberInfo groupMemberInfo) {
}
/**
* Result of removing a group administrator
*
* @param groupId Group ID
* @param groupMemberInfo Group member information
* @param isSuccess Whether the operation succeeded
*/
protected void onGroupManagerRemovalResult(
String groupId, GroupMemberInfo groupMemberInfo, boolean isSuccess) {
}
}