跳到主要内容

群成员特别关注页面

提示

此功能在 5.12.2 版本开始支持。

开启消息免打扰后,在特别关注成员列表中的群成员发消息依然可以收到消息远程推送。

开通服务

使用此功能前,您须在控制台开通信息托管服务。

群组关注页面

群组关注页面用于管理群组的关注用户,提供查看关注用户列表、添加新关注用户以及移除关注用户的功能。以下是群组关注页面相关组件的详细说明:

  • GroupFollowsActivity: 群组关注页面的容器类,负责加载并显示 GroupFollowsFragment
  • GroupFollowsFragment: 群组关注页面的核心部分,负责展示群组关注用户列表,并处理用户交互事件。
  • GroupFollowsViewModel: 数据和业务逻辑的处理类,负责从服务器或本地获取群组关注用户数据,并将数据传递给 GroupFollowsFragment
  • XML布局: rc_page_group_follows.xml

启动群组关注页面

ConversationIdentifier conversationIdentifier = getConversationIdentifier();
startActivity(GroupFollowsActivity.newIntent(this, conversationIdentifier, maxCount));

定制化

// 自定义CustomGroupFollowsFragment
public class CustomGroupFollowsFragment extends GroupFollowsFragment {

/**
* 移除群组关注人
*
* @param groupMemberInfo 群组成员信息
*/
protected void onRemoveGroupFollow(GroupMemberInfo groupMemberInfo) {
}

}