EMDefines.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. //
  2. // EMDefines.h
  3. // ChatDemo-UI3.0
  4. //
  5. // Created by XieYajie on 2019/2/11.
  6. // Copyright © 2019 XieYajie. All rights reserved.
  7. //
  8. #ifndef EMDefines_h
  9. #define EMDefines_h
  10. #define DT_IS_IPHONEX_XS (kGXScreenHeigh == 812.f) //是否是iPhoneX、iPhoneXS
  11. #define DT_IS_IPHONEXR_XSMax (kGXScreenHeigh == 896.f) //是否是iPhoneXR、iPhoneX Max
  12. #define IS_IPHONEX (DT_IS_IPHONEX_XS||DT_IS_IPHONEXR_XSMax) //是否是iPhoneX系列手机
  13. #define EMVIEWTOPMARGIN (IS_IPHONEX ? 22.f : 0.f)
  14. #define EMVIEWBOTTOMMARGIN (IS_IPHONEX ? 34.f : 0.f)
  15. //账号状态
  16. #define ACCOUNT_LOGIN_CHANGED @"loginStateChange"
  17. #define NOTIF_PUSHVIEWCONTROLLER @"EMPushNotificationViewController"
  18. #define NOTIF_ID @"EMNotifId"
  19. #define NOTIF_NAVICONTROLLER @"EMNaviController"
  20. //聊天
  21. #define CHAT_PUSHVIEWCONTROLLER @"EMPushChatViewController"
  22. #define CHAT_CLEANMESSAGES @"EMChatCleanMessages"
  23. //消息动图
  24. #define MSG_EXT_GIF_ID @"em_expression_id"
  25. #define MSG_EXT_GIF @"em_is_big_expression"
  26. #define MSG_EXT_READ_RECEIPT @"em_read_receipt"
  27. #define MSG_EXT_UN_READ_RECEIPT @"em_read_unreceipt"
  28. //消息撤回
  29. #define MSG_EXT_RECALL @"em_recall"
  30. //多人会议邀请
  31. #define MSG_EXT_CALLOP @"em_conference_op"
  32. #define MSG_EXT_CALLID @"em_conference_id"
  33. #define MSG_EXT_CALLPSWD @"em_conference_password"
  34. //@
  35. //群组消息ext的字段,用于存放被@的环信id数组
  36. #define MSG_EXT_AT @"em_at_list"
  37. //群组消息ext字典中,kGroupMessageAtList字段的值,用于@所有人
  38. #define MSG_EXT_ATALL @"all"
  39. //Typing
  40. #define MSG_TYPING_BEGIN @"TypingBegin"
  41. #define MSG_TYPING_END @"TypingEnd"
  42. #define kHaveUnreadAtMessage @"kHaveAtMessage"
  43. #define kAtYouMessage 1
  44. #define kAtAllMessage 2
  45. //实时音视频
  46. #define CALL_CHATTER @"chatter"
  47. #define CALL_TYPE @"type"
  48. #define CALL_PUSH_VIEWCONTROLLER @"EMPushCallViewController"
  49. //实时音视频1v1呼叫
  50. #define CALL_MAKE1V1 @"EMMake1v1Call"
  51. //实时音视频多人
  52. #define CALL_MODEL @"EMCallForModel"
  53. #define CALL_MAKECONFERENCE @"EMMakeConference"
  54. #define CALL_SELECTCONFERENCECELL @"EMSelectConferenceCell"
  55. //用户黑名单
  56. #define CONTACT_BLACKLIST_UPDATE @"EMContactBlacklistUpdate"
  57. #define CONTACT_BLACKLIST_RELOAD @"EMContactReloadBlacklist"
  58. //群组
  59. #define GROUP_LIST_PUSHVIEWCONTROLLER @"EMPushGroupsViewController"
  60. #define GROUP_INFO_UPDATED @"EMGroupInfoUpdated"
  61. #define GROUP_SUBJECT_UPDATED @"EMGroupSubjectUpdated"
  62. #define GROUP_INFO_PUSHVIEWCONTROLLER @"EMPushGroupInfoViewController"
  63. #define GROUP_INFO_REFRESH @"EMGroupInfoRefresh"
  64. //聊天室
  65. #define CHATROOM_LIST_PUSHVIEWCONTROLLER @"EMPushChatroomsViewController"
  66. #define CHATROOM_INFO_UPDATED @"EMChatroomInfoUpdated"
  67. #define CHATROOM_INFO_PUSHVIEWCONTROLLER @"EMPushChatroomInfoViewController"
  68. #endif /* EMDefines_h */