IM即时通讯

黑名单

加入黑名单

把对方添加到黑名单中。意味着对方不能给你发送消息,但你可以给对方发送消息。

await CRIM.iMManager.friendshipManager.addBlacklist(
  userID: otherUserID,
);

相关 API 请参考:

相关回调请参考:

获取黑名单

获取黑名单,返回被自己拉黑过的黑名单。

final List<BlacklistInfo> blacklist = await CRIM.iMManager.friendshipManager.getBlacklist();

相关 API 请参考:

移除黑名单

把用户从自己的黑名单中移除。

await CRIM.iMManager.friendshipManager.removeBlacklist(
  userID: otherUserID,
);

相关 API 请参考:

相关回调请参考: