3.2.3api修改

-代表原来api,+代表修改后的api。 @Deprecated代表已过时的api,后面会带着替代的api

EMChatRoomChangeListener.java

-    void onMemberKicked(String roomId, String roomName, String participant);
 +    void onRemovedFromChatRoom(String roomId, String roomName, String participant);

EMContactListener.java

-    void onContactAgreed(String username);
 +    void onFriendRequestAccepted(String username);

 -    void onContactRefused(String username);
 +    void onFriendRequestDeclined(String username);

EMGroupChangeListener.java

-	void onApplicationReceived(String groupId, String groupName, String applicant, String reason);
 +	void onRequestToJoinReceived(String groupId, String groupName, String applicant, String reason);

 -	void onApplicationAccept(String groupId, String groupName, String accepter);
 +	void onRequestToJoinAccepted(String groupId, String groupName, String accepter);

 -	void onApplicationDeclined(String groupId, String groupName, String decliner, String reason);
 +	void onRequestToJoinDeclined(String groupId, String groupName, String decliner, String reason);

EMMessageListener.java

-	void onMessageReadAckReceived(List<EMMessage> messages);
 +	void onMessageRead(List<EMMessage> messages);

 -	void onMessageDeliveryAckReceived(List<EMMessage> messages);
 +	void onMessageDelivered(List<EMMessage> messages);

EMChatManager.java

@Deprecated
 public int getUnreadMsgsCount() 
 use getUnreadMessageCount instead

 @Deprecated
 public void setMessageListened(EMMessage message) 
 use setVoiceMessageListened instead

EMChatRoom.java

@Deprecated
 public int getAffiliationsCount()
 use getMemberCount() instead

EMChatRoomManager.java

@Deprecated
 public void removeChatRoomChangeListener(EMChatRoomChangeListener listener) 
 use removeChatRoomListener instead

EMClient.java

@Deprecated
 public boolean updateCurrentUserNick(String nickname)
 use {@link EMPushManager#updatePushNickname(String)} instead

 -    public boolean isSlientMessage(EMMessage message)
 判断消息的扩展属性''em_ignore_notification''是否为true,true表示是SlientMessage
 message.getBooleanAttribute("em_ignore_notification", false)

EMContact.java

@Deprecated
 public void setNick(String nick)
 use {@link EMContact#setNickname(String)} instead

EMGroup.java

@Deprecated
 public boolean isAllowInvites() {
 use {@link EMGroup#isMemberAllowToInvite()} instead

 -    public void setPublic(boolean isPublic)
 -    public void setAllowInvites(boolean isAllowInvites)

 @Deprecated
 public int getAffiliationsCount()
 use {@link EMGroup#getMemberCount()} instead

NetUtils.java

@Deprecated
 public static boolean isWifiConnection(Context context) {
 use {@link NetUtils#isWifiConnected(Context)}  instead

 @Deprecated
 public static boolean isMobileConnection(Context context)
 use {@link NetUtils#isMobileConnected(Context)} instead

 @Deprecated
 public static boolean isEthernetConnection(Context context) {
 use {@link NetUtils#isEthernetConnected(Context)} instead

EMConversation

-      public String getUserName();
use {@link EMConversation#conversationId()} instead
-      public int getMessagePosition(EMMessage message)

EMMessage

-     public EMError EMMessage.getError
use {@link EMChatMessage.sendMessage(EMMessage, EMCallBack)} instead, catch error in callback
-     public void setReceipt(String)
use {@link EMMessage#setTo(String)} instead

EMOptions.java

-       public boolean getRequireServerAck()
-       public void setRequireServerAck
+       public String getVersion()
+       public String getAccessToken()
+       public String getAccessToken(boolean b)

EMChatConfig中的函数转移到EMOptions中,并删除EMChatConfig

- public class EMChatConfig {

-       public String getAppKey()
use {@link EMOptions#getAppKey} instead

-       public String getVersion()
use {@link EMClient#VERSION} instead

-       public String getAccessToken()
use {@link EMOptions#getAccessToken} instead

-       public String getAccessToken(boolean b)
use {@link EMOptions#getAccessToken} instead

-       public String getRestServer()
use {@link EMOptions#getRestServer} instead

EMCallManager.EMVideoCallHelper

-       public void setResolution(int width, int height)
use {@link EMCallOptions#setResolution(int width, int height)} instead

-       public void setVideoBitrate(int bitrate)
use {@link EMCallOptions#setMaxVideoKbps(long)} instead

-       public void setAdaptiveVideoFlag(boolean enable)
use {@link EMCallOptions#enableFixedVideoResolution(boolean)} instead, notice: value meaning is reversed

EMCallSession

-    public boolean isRelayCall()
use {@link EMCallSession#getConnectType()} instead