3.3.3接口变化列表
-
代表原来api,+
代表修改后的api。 @Deprecated代表已过时的api,后面会带着替代的api
新增加接口EMClientListener
EMClientListener:
+ void onMigrate2x(boolean success);
新增加接口EMMultiDeviceListener
EMMultiDeviceListener:
+ void onContactEvent(int event, String target, String ext);
+ void onGroupEvent(int event, String target, List<String> usernames);
新增加接口EMDeviceInfo:
EMDeviceInfo:
+ public String getResource()
+ public String getDeviceUUID()
+ public String getDeviceName()
位置移动
com.hyphenate.chat.EMCallManager.EMVideoCallHelper --> com.hyphenate.chat.EMVideoCallHelper
com.hyphenate.chat.EMGroup.EMGroupOptions --> com.hyphenate.chat.EMGroupOptions
EMChatRoomManager获取成员方法参数发生变化:
- public void asyncFetchChatRoomMembers(final String chatRoomId, final int pageNum, final int pageSize, final EMValueCallBack<List<String>> callBack) {
+ public void asyncFetchChatRoomMembers(final String chatRoomId, final String cursor, final int pageSize, final EMValueCallBack<EMCursorResult<String>> callBack)
EMClient:
+ public void addClientListener(final EMClientListener listener) {
+ public void removeClientListener(final EMClientListener listener) {
+ public void addMultiDeviceListener(EMMultiDeviceListener listener) {
+ public void removeMultiDeviceListener(EMMultiDeviceListener listener) {
+ public List<EMDeviceInfo> getLoggedInDevicesFromServer(String username, String password) throws HyphenateException {
+ public List<EMDeviceInfo> getLoggedInDevicesFromServer(String username, String password) throws HyphenateException {
+ public void kickAllDevices(String username, String password) throws HyphenateException {