EMContactManager class
Properties
Methods
-
acceptInvitation(
String username) → Future< String?> -
接受加好友的邀请
username
. -
addContact(
String username, [String reason = '']) → Future< String?> -
添加联系人
username
withreason
. -
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 nonexistent 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