1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- //
- // EMDefines.h
- // ChatDemo-UI3.0
- //
- // Created by XieYajie on 2019/2/11.
- // Copyright © 2019 XieYajie. All rights reserved.
- //
- #ifndef EMDefines_h
- #define EMDefines_h
- #define DT_IS_IPHONEX_XS (kGXScreenHeigh == 812.f) //是否是iPhoneX、iPhoneXS
- #define DT_IS_IPHONEXR_XSMax (kGXScreenHeigh == 896.f) //是否是iPhoneXR、iPhoneX Max
- #define IS_IPHONEX (DT_IS_IPHONEX_XS||DT_IS_IPHONEXR_XSMax) //是否是iPhoneX系列手机
- #define EMVIEWTOPMARGIN (IS_IPHONEX ? 22.f : 0.f)
- #define EMVIEWBOTTOMMARGIN (IS_IPHONEX ? 34.f : 0.f)
- //账号状态
- #define ACCOUNT_LOGIN_CHANGED @"loginStateChange"
- #define NOTIF_PUSHVIEWCONTROLLER @"EMPushNotificationViewController"
- #define NOTIF_ID @"EMNotifId"
- #define NOTIF_NAVICONTROLLER @"EMNaviController"
- //聊天
- #define CHAT_PUSHVIEWCONTROLLER @"EMPushChatViewController"
- #define CHAT_CLEANMESSAGES @"EMChatCleanMessages"
- //消息动图
- #define MSG_EXT_GIF_ID @"em_expression_id"
- #define MSG_EXT_GIF @"em_is_big_expression"
- #define MSG_EXT_READ_RECEIPT @"em_read_receipt"
- #define MSG_EXT_UN_READ_RECEIPT @"em_read_unreceipt"
- //消息撤回
- #define MSG_EXT_RECALL @"em_recall"
- //多人会议邀请
- #define MSG_EXT_CALLOP @"em_conference_op"
- #define MSG_EXT_CALLID @"em_conference_id"
- #define MSG_EXT_CALLPSWD @"em_conference_password"
- //@
- //群组消息ext的字段,用于存放被@的环信id数组
- #define MSG_EXT_AT @"em_at_list"
- //群组消息ext字典中,kGroupMessageAtList字段的值,用于@所有人
- #define MSG_EXT_ATALL @"all"
- //Typing
- #define MSG_TYPING_BEGIN @"TypingBegin"
- #define MSG_TYPING_END @"TypingEnd"
- #define kHaveUnreadAtMessage @"kHaveAtMessage"
- #define kAtYouMessage 1
- #define kAtAllMessage 2
- //实时音视频
- #define CALL_CHATTER @"chatter"
- #define CALL_TYPE @"type"
- #define CALL_PUSH_VIEWCONTROLLER @"EMPushCallViewController"
- //实时音视频1v1呼叫
- #define CALL_MAKE1V1 @"EMMake1v1Call"
- //实时音视频多人
- #define CALL_MODEL @"EMCallForModel"
- #define CALL_MAKECONFERENCE @"EMMakeConference"
- #define CALL_SELECTCONFERENCECELL @"EMSelectConferenceCell"
- //用户黑名单
- #define CONTACT_BLACKLIST_UPDATE @"EMContactBlacklistUpdate"
- #define CONTACT_BLACKLIST_RELOAD @"EMContactReloadBlacklist"
- //群组
- #define GROUP_LIST_PUSHVIEWCONTROLLER @"EMPushGroupsViewController"
- #define GROUP_INFO_UPDATED @"EMGroupInfoUpdated"
- #define GROUP_SUBJECT_UPDATED @"EMGroupSubjectUpdated"
- #define GROUP_INFO_PUSHVIEWCONTROLLER @"EMPushGroupInfoViewController"
- #define GROUP_INFO_REFRESH @"EMGroupInfoRefresh"
- //聊天室
- #define CHATROOM_LIST_PUSHVIEWCONTROLLER @"EMPushChatroomsViewController"
- #define CHATROOM_INFO_UPDATED @"EMChatroomInfoUpdated"
- #define CHATROOM_INFO_PUSHVIEWCONTROLLER @"EMPushChatroomInfoViewController"
- #endif /* EMDefines_h */
|