fetchChatroomMembers method
- {required String roomId,
- required NIMChatroomMemberQueryType queryType,
- required int limit,
- String? lastMemberAccount}
获取当前聊天室成员
roomId
聊天室id
queryType
查询的类型, NIMChatroomMemberQueryType
limit
可拉取的消息数量
lastMemberAccount
最后一位成员锚点,不包括此成员。填nil会使用当前服务器最新时间开始查询,即第一页。
Implementation
Future<NIMResult<List<NIMChatroomMember>>> fetchChatroomMembers({
required String roomId,
required NIMChatroomMemberQueryType queryType,
required int limit,
String? lastMemberAccount,
}) {
return _platform.fetchChatroomMembers(
roomId: roomId,
queryType: queryType,
limit: limit,
lastMemberAccount: lastMemberAccount,
);
}