EMContactManager class Null safety

Properties

blockList → List<String>?
本地缓存的黑名单列表,在从服务器获取黑名单后有值
read-only
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

acceptInvitation(String username) → Future<String?>
接受加好友的邀请username.
addContact(String username, [String reason = '']) → Future<String?>
添加联系人username with reason.
addContactListener(EMContactEventListener contactListener) → void
设置好友监听器 contactListener
addUserToBlockList(String username) → Future<String?>
把指定用户加入到黑名单中 username .
declineInvitation(String username) → Future<String?>
拒绝加好友的邀请 username.
deleteContact(String username, [bool keepConversation = false]) → Future<String?>
删除联系人 username keepConversation true 保留会话和消息 false 不保留, 默认为false
getAllContactsFromDB() → Future<List<EMContact>>
从本地获取所有的好友 only ios now.
getAllContactsFromServer() → Future<List<EMContact>>
从服务器获取所有的好友
getBlockListFromServer() → Future<List<EMContact>>
从服务器获取黑名单中的用户的ID
getSelfIdsOnOtherPlatform() → Future<List<String>?>
从服务器获取登录用户在其他设备上登录的ID
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
removeContactListener(EMContactEventListener contactListener) → void
移除好友监听器 contactListener
removeUserFromBlockList(String username) → Future<String?>
把用户从黑名单中移除 username.
toString() → String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) → bool
The equality operator. [...]
inherited