浏览 SDKs · Flutter
平台
SDKsFlutter

获取发出的好友申请

分页查询 Flutter 当前用户发出的好友申请。

复制

分页拉取当前登录用户主动向他人发起的好友申请记录列表:

参数说明

参数类型是否必填说明
offsetint否分页拉取的偏移量,首屏从 0 开始。
countint否每页拉取的好友申请记录数量。
final items = await OpenIM.iMManager.friendshipManager
    .getFriendApplicationListAsApplicant(
  req: GetFriendApplicationListAsApplicantReq(offset: 0, count: 20),
);

返回结果

Future 成功返回当前页的好友申请记录列表(List<FriendApplicationInfo>)。

查询操作建立静态数据快照,不会触发事件通知。申请记录可基于 fromUserID:toUserID 唯一去重与合并。发起新好友申请请参考发送好友申请。