TUIDefine.h 66 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166
  1. // Created by Tencent on 2023/06/09.
  2. // Copyright © 2023 Tencent. All rights reserved.
  3. #ifndef THeader_h
  4. #define THeader_h
  5. #import <SDWebImage/SDWebImage.h>
  6. #import "NSDictionary+TUISafe.h"
  7. #import "TUICommonModel.h"
  8. #import "TUIConfig.h"
  9. #import "TUIDarkModel.h"
  10. #import "TUIGlobalization.h"
  11. #import "TUIThemeManager.h"
  12. #import "TUITool.h"
  13. #import "UIColor+TUIHexColor.h"
  14. #import "UIView+TUILayout.h"
  15. #import "UIView+TUIToast.h"
  16. @import ImSDK_Plus;
  17. #define tui_weakify(object) \
  18. autoreleasepool {} \
  19. __weak typeof(object) weak##object = object;
  20. #define tui_strongify(object) \
  21. autoreleasepool {} \
  22. __strong typeof(weak##object) object = weak##object;
  23. /////////////////////////////////////////////////////////////////////////////////
  24. //
  25. // 自定义消息业务版本号
  26. // Custom message protocol version number
  27. //
  28. /////////////////////////////////////////////////////////////////////////////////
  29. #define BussinessID @"businessID"
  30. #define BussinessID_GroupCreate @"group_create"
  31. #define BussinessID_TextLink @"text_link"
  32. // Supported in 6.5 and later, created by web
  33. #define BussinessID_Evaluation @"evaluation"
  34. // Supported in 6.5 and later, created by web
  35. #define BussinessID_Order @"order"
  36. // Supported in 6.5 and later
  37. #define BussinessID_Typing @"user_typing_status"
  38. // Supported in 7.1 and later
  39. #define BussinessID_GroupPoll @"group_poll"
  40. #define BussinessID_GroupNote @"group_note"
  41. #define BussinessID_GroupNoteTips @"group_note_tips"
  42. #define BussinessID_GroupRoomMessage @"group_room_message"
  43. /**
  44. * 创建群自定义消息业务版本
  45. * The business version of "Group-creating custom message"
  46. */
  47. #define GroupCreate_Version 4
  48. /**
  49. * 自定义 cell 业务版本(点击跳转官网)
  50. * The business version of "custom cell" - click to jump to the official website
  51. */
  52. #define TextLink_Version 4
  53. /**
  54. * 消息回复的协议版本
  55. *「消息自定义字段」中的「消息回复协议」版本号
  56. *
  57. * The version of the protocol for the message reply
  58. * "Message Reply Protocol" version number in "Message Custom Field"
  59. */
  60. #define kMessageReplyVersion 1
  61. /**
  62. * 消息回复的协议版本
  63. *「草稿字段」中的「消息回复协议」版本号
  64. *
  65. * The version of the protocol for the message reply
  66. * "Message Reply Protocol" version number in "Draft Field"
  67. */
  68. #define kDraftMessageReplyVersion 1
  69. /////////////////////////////////////////////////////////////////////////////////
  70. //
  71. // 推送业务版本号
  72. // The version number of the push service
  73. //
  74. /////////////////////////////////////////////////////////////////////////////////
  75. /**
  76. * 推送版本
  77. * The version number of the push service
  78. */
  79. #define APNs_Version 1
  80. /**
  81. * 普通消息推送
  82. * General message push
  83. */
  84. #define APNs_Business_NormalMsg 1
  85. /**
  86. * 音视频通话推送
  87. * Pushing of audio and video call
  88. */
  89. #define APNs_Business_Call 2
  90. /////////////////////////////////////////////////////////////////////////////////
  91. //
  92. // 设备系统相关
  93. // Device & Platform
  94. //
  95. /////////////////////////////////////////////////////////////////////////////////
  96. #define Screen_Width [UIScreen mainScreen].bounds.size.width
  97. #define Screen_Height [UIScreen mainScreen].bounds.size.height
  98. #define Is_Iphone (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
  99. #define Is_IPhoneX (Screen_Width >= 375.0f && Screen_Height >= 812.0f && Is_Iphone)
  100. #define StatusBar_Height (Is_IPhoneX ? (44.0) : (20.0))
  101. #define TabBar_Height (Is_IPhoneX ? (49.0 + 34.0) : (49.0))
  102. #define NavBar_Height (44)
  103. #define SearchBar_Height (55)
  104. #define Bottom_SafeHeight (Is_IPhoneX ? (34.0) : (0))
  105. #define RGBA(r, g, b, a) [UIColor colorWithRed:(r) / 255.0f green:(g) / 255.0f blue:(b) / 255.0f alpha:a]
  106. #define RGB(r, g, b) [UIColor colorWithRed:(r) / 255.0f green:(g) / 255.0f blue:(b) / 255.0f alpha:1.f]
  107. #define kScale390(x) (x * (UIScreen.mainScreen.bounds.size.width / 390.0))
  108. #define kScale375(x) (x * (UIScreen.mainScreen.bounds.size.width / 375.0))
  109. /////////////////////////////////////////////////////////////////////////////////
  110. //
  111. // Bundle
  112. //
  113. /////////////////////////////////////////////////////////////////////////////////
  114. #define TUIDemoBundle @"TUIDemo"
  115. #define TUICoreBundle @"TUICore"
  116. #define TUIChatBundle @"TUIChat"
  117. #define TUIChatFaceBundle @"TUIChatFace"
  118. #define TUIConversationBundle @"TUIConversation"
  119. #define TUIConversationGroupBundle @"TUIConversationGroup"
  120. #define TUIConversationMarkBundle @"TUIConversationMark"
  121. #define TUIContactBundle @"TUIContact"
  122. #define TUIGroupBundle @"TUIGroup"
  123. #define TUISearchBundle @"TUISearch"
  124. #define TUIPollBundle @"TUIPoll"
  125. #define TUIGroupNoteBundle @"TUIGroupNote"
  126. #define TIMCommonBundle @"TIMCommon"
  127. #define TUITranslationBundle @"TUITranslation"
  128. #define TUIKitLocalizableBundle @"TUIKitLocalizable"
  129. #define TUICoreLocalizableBundle TUIKitLocalizableBundle
  130. #define TUIChatLocalizableBundle @"TUIChatLocalizable"
  131. #define TUIConversationLocalizableBundle @"TUIConversationLocalizable"
  132. #define TUIContactLocalizableBundle @"TUIContactLocalizable"
  133. #define TUIGroupLocalizableBundle @"TUIGroupLocalizable"
  134. #define TUISearchLocalizableBundle @"TUISearchLocalizable"
  135. #define TIMCommonLocalizableBundle @"TIMCommonLocalizable"
  136. #define TUIDemoBundle_Key_Class @"TUIKit"
  137. #define TUICoreBundle_Key_Class @"TUICore"
  138. #define TUIChatBundle_Key_Class @"TUIChatService"
  139. #define TUICallKitBundle_Key_Class @"TUICallingService"
  140. #define TUIChatFaceBundle_Key_Class @"TUIChatService"
  141. #define TUIConversationBundle_Key_Class @"TUIConversationService"
  142. #define TUIConversationGroupBundle_Key_Class @"TUIConversationGroupService"
  143. #define TUIConversationMarkBundle_Key_Class @"TUIConversationMarkService"
  144. #define TUIContactBundle_Key_Class @"TUIContactService"
  145. #define TUIGroupBundle_Key_Class @"TUIGroupService"
  146. #define TUISearchBundle_Key_Class @"TUISearchService"
  147. #define TUIPollBundle_Key_Class @"TUIPollService"
  148. #define TUIGroupNoteBundle_Key_Class @"TUIGroupNoteService"
  149. #define TIMCommonBundle_Key_Class @"TIMConfig"
  150. #define TUITranslationBundle_Key_Class @"TUITranslationService"
  151. #define TUIKitLocalizableBundle_Key_Class @"TUICore"
  152. #define TUIChatLocalizableBundle_Key_Class @"TUIChatService"
  153. #define TIMCommonLocalizableBundle_Key_Class @"TIMConfig"
  154. static inline NSString *getTUIFrameWorkName(NSString *bundleKeyClass) {
  155. if ([bundleKeyClass isEqualToString:TUICoreBundle_Key_Class] || [bundleKeyClass isEqualToString:TUIKitLocalizableBundle_Key_Class]) {
  156. return @"TUICore";
  157. }
  158. if ([bundleKeyClass isEqualToString:TUIChatBundle_Key_Class] || [bundleKeyClass isEqualToString:TUIChatFaceBundle_Key_Class] ||
  159. [bundleKeyClass isEqualToString:TUIChatLocalizableBundle_Key_Class]) {
  160. return @"TUIChat";
  161. }
  162. if ([bundleKeyClass isEqualToString:TUIConversationBundle_Key_Class]) {
  163. return @"TUIConversation";
  164. }
  165. if ([bundleKeyClass isEqualToString:TUIConversationGroupBundle_Key_Class]) {
  166. return @"TUIConversationGroupPlugin";
  167. }
  168. if ([bundleKeyClass isEqualToString:TUIConversationMarkBundle_Key_Class]) {
  169. return @"TUIConversationMarkPlugin";
  170. }
  171. if ([bundleKeyClass isEqualToString:TUIContactBundle_Key_Class]) {
  172. return @"TUIContact";
  173. }
  174. if ([bundleKeyClass isEqualToString:TUIGroupBundle_Key_Class]) {
  175. return @"TUIGroup";
  176. }
  177. if ([bundleKeyClass isEqualToString:TUISearchBundle_Key_Class]) {
  178. return @"TUISearch";
  179. }
  180. if ([bundleKeyClass isEqualToString:TUIPollBundle_Key_Class]) {
  181. return @"TUIPullPlugin";
  182. }
  183. if ([bundleKeyClass isEqualToString:TUIGroupNoteBundle_Key_Class]) {
  184. return @"TUIGroupNotePlugin";
  185. }
  186. if ([bundleKeyClass isEqualToString:TIMCommonBundle_Key_Class]) {
  187. return @"TIMCommon";
  188. }
  189. if ([bundleKeyClass isEqualToString:TUITranslationBundle_Key_Class]) {
  190. return @"TUITranslationPlugin";
  191. }
  192. return @"";
  193. }
  194. static inline NSString *getTUIGetBundlePath(NSString *bundleName, NSString *bundleKeyClass) {
  195. static NSMutableDictionary *bundlePathCache = nil;
  196. if (bundlePathCache == nil) {
  197. bundlePathCache = [NSMutableDictionary dictionary];
  198. }
  199. NSString *bundlePathKey = [NSString stringWithFormat:@"%@_%@", bundleName, bundleKeyClass];
  200. NSString *bundlePath = [bundlePathCache objectForKey:bundlePathKey];
  201. if (bundlePath == nil) {
  202. bundlePath = [[NSBundle mainBundle] pathForResource:bundleName ofType:@"bundle"];
  203. }
  204. if (bundlePath.length == 0) {
  205. bundlePath = [[NSBundle bundleForClass:NSClassFromString(bundleKeyClass)] pathForResource:bundleName ofType:@"bundle"];
  206. }
  207. if (bundlePath.length == 0) {
  208. bundlePath = [NSBundle mainBundle].bundlePath;
  209. bundlePath = [bundlePath stringByAppendingPathComponent:@"Frameworks"];
  210. bundlePath = [bundlePath stringByAppendingPathComponent:getTUIFrameWorkName(bundleKeyClass)];
  211. bundlePath = [bundlePath stringByAppendingPathExtension:@"framework"];
  212. bundlePath = [bundlePath stringByAppendingPathComponent:bundleName];
  213. bundlePath = [bundlePath stringByAppendingPathExtension:@"bundle"];
  214. }
  215. if (bundlePath && bundlePathKey) {
  216. [bundlePathCache setObject:bundlePath forKey:bundlePathKey];
  217. }
  218. return bundlePath;
  219. }
  220. #define TUIBundlePath(bundleName, bundleKeyClass) getTUIGetBundlePath(bundleName, bundleKeyClass)
  221. #define TUIDemoThemePath TUIBundlePath(@"TUIDemoTheme", TUIDemoBundle_Key_Class)
  222. #define TUICoreThemePath TUIBundlePath(@"TUICoreTheme", TUICoreBundle_Key_Class)
  223. #define TUIChatThemePath TUIBundlePath(@"TUIChatTheme", TUIChatBundle_Key_Class)
  224. #define TUIConversationThemePath TUIBundlePath(@"TUIConversationTheme", TUIConversationBundle_Key_Class)
  225. #define TUIConversationGroupTheme TUIBundlePath(@"TUIConversationGroupTheme", TUIConversationGroupBundle_Key_Class)
  226. #define TUIContactThemePath TUIBundlePath(@"TUIContactTheme", TUIContactBundle_Key_Class)
  227. #define TUIGroupThemePath TUIBundlePath(@"TUIGroupTheme", TUIGroupBundle_Key_Class)
  228. #define TUISearchThemePath TUIBundlePath(@"TUISearchTheme", TUISearchBundle_Key_Class)
  229. #define TUIPollThemePath TUIBundlePath(@"TUIPollTheme", TUIPollBundle_Key_Class)
  230. #define TUIGroupNoteThemePath TUIBundlePath(@"TUIGroupNoteTheme", TUIGroupNoteBundle_Key_Class)
  231. #define TIMCommonThemePath TUIBundlePath(@"TIMCommonTheme", TIMCommonBundle_Key_Class)
  232. #define TUITranslationThemePath TUIBundlePath(@"TUITranslationTheme", TUITranslationBundle_Key_Class)
  233. #define TUICallKitThemePath TUIBundlePath(@"TUICallKitTheme", TUICallKitBundle_Key_Class)
  234. static inline NSBundle *getTUIGetLocalizable(NSString *bundleName) {
  235. if ([bundleName isEqualToString:TUIChatLocalizableBundle] || [bundleName isEqualToString:TUIChatFaceBundle]) {
  236. return [NSBundle bundleWithPath:TUIBundlePath(bundleName, TUIChatLocalizableBundle_Key_Class)];
  237. } else if ([bundleName isEqualToString:TIMCommonLocalizableBundle]) {
  238. return [NSBundle bundleWithPath:TUIBundlePath(bundleName, TIMCommonLocalizableBundle_Key_Class)];
  239. } else {
  240. return [NSBundle bundleWithPath:TUIBundlePath(bundleName, TUIKitLocalizableBundle_Key_Class)];
  241. }
  242. }
  243. #define TUIKitLocalizable(bundleName) getTUIGetLocalizable(bundleName)
  244. #define TUIDemoImagePath(imageName) [TUIBundlePath(TUIDemoBundle, TUIDemoBundle_Key_Class) stringByAppendingPathComponent:imageName]
  245. #define TUICoreImagePath(imageName) [TUIBundlePath(TUICoreBundle, TUICoreBundle_Key_Class) stringByAppendingPathComponent:imageName]
  246. #define TUIChatImagePath(imageName) [TUIBundlePath(TUIChatBundle, TUIChatBundle_Key_Class) stringByAppendingPathComponent:imageName]
  247. #define TUIChatFaceImagePath(imageName) [TUIBundlePath(TUIChatFaceBundle, TUIChatFaceBundle_Key_Class) stringByAppendingPathComponent:imageName]
  248. #define TUIConversationImagePath(imageName) [TUIBundlePath(TUIConversationBundle, TUIConversationBundle_Key_Class) stringByAppendingPathComponent:imageName]
  249. #define TUIConversationGroupImagePath(imageName) \
  250. [TUIBundlePath(TUIConversationGroupBundle, TUIConversationGroupBundle_Key_Class) stringByAppendingPathComponent:imageName]
  251. #define TUIConversationMarkImagePath(imageName) \
  252. [TUIBundlePath(TUIConversationMarkBundle, TUIConversationMarkBundle_Key_Class) stringByAppendingPathComponent:imageName]
  253. #define TUIContactImagePath(imageName) [TUIBundlePath(TUIContactBundle, TUIContactBundle_Key_Class) stringByAppendingPathComponent:imageName]
  254. #define TUIGroupImagePath(imageName) [TUIBundlePath(TUIGroupBundle, TUIGroupBundle_Key_Class) stringByAppendingPathComponent:imageName]
  255. #define TUISearchImagePath(imageName) [TUIBundlePath(TUISearchBundle, TUISearchBundle_Key_Class) stringByAppendingPathComponent:imageName]
  256. #define TUIPollImagePath(imageName) [TUIBundlePath(TUIPollBundle, TUIPollBundle_Key_Class) stringByAppendingPathComponent:imageName]
  257. #define TUIGroupNoteImagePath(imageName) [TUIBundlePath(TUIGroupNoteBundle, TUIGroupNoteBundle_Key_Class) stringByAppendingPathComponent:imageName]
  258. #define TIMCommonImagePath(imageName) [TUIBundlePath(TIMCommonBundle, TIMCommonBundle_Key_Class) stringByAppendingPathComponent:imageName]
  259. #define TUITranslationImagePath(imageName) [TUIBundlePath(TUITranslationBundle, TUITranslationBundle_Key_Class) stringByAppendingPathComponent:imageName]
  260. //-----Minimalist-------
  261. #define TUIDemoBundle_Minimalist @"TUIDemo_Minimalist"
  262. #define TUICoreBundle_Minimalist @"TUICore_Minimalist"
  263. #define TUIChatBundle_Minimalist @"TUIChat_Minimalist"
  264. #define TUIChatFaceBundle_Minimalist @"TUIChatFace_Minimalist"
  265. #define TUIConversationBundle_Minimalist @"TUIConversation_Minimalist"
  266. #define TUIContactBundle_Minimalist @"TUIContact_Minimalist"
  267. #define TUIGroupBundle_Minimalist @"TUIGroup_Minimalist"
  268. #define TUISearchBundle_Minimalist @"TUISearch_Minimalist"
  269. #define TUIPollBundle_Minimalist @"TUIPoll_Minimalist"
  270. #define TUIGroupNoteBundle_Minimalist @"TUIGroupNote_Minimalist"
  271. #define TUITranslationBundle_Minimalist @"TUITranslation_Minimalist"
  272. // #define TUIKitLocalizableBundle @"TUIKitLocalizable"
  273. // #define TUIKitLocalizable(bundleName) [NSBundle bundleWithPath:TUIBundlePath(bundleName, TUIKitLocalizableBundle_Key_Class)]
  274. #define TUIDemoImagePath_Minimalist(imageName) [TUIBundlePath(TUIDemoBundle_Minimalist, TUIDemoBundle_Key_Class) stringByAppendingPathComponent:imageName]
  275. #define TUICoreImagePath_Minimalist(imageName) [TUIBundlePath(TUICoreBundle_Minimalist, TUICoreBundle_Key_Class) stringByAppendingPathComponent:imageName]
  276. #define TUIChatImagePath_Minimalist(imageName) [TUIBundlePath(TUIChatBundle_Minimalist, TUIChatBundle_Key_Class) stringByAppendingPathComponent:imageName]
  277. #define TUIChatFaceImagePath_Minimalist(imageName) \
  278. [TUIBundlePath(TUIChatFaceBundle_Minimalist, TUIChatFaceBundle_Key_Class) stringByAppendingPathComponent:imageName]
  279. #define TUIConversationImagePath_Minimalist(imageName) \
  280. [TUIBundlePath(TUIConversationBundle_Minimalist, TUIConversationBundle_Key_Class) stringByAppendingPathComponent:imageName]
  281. #define TUIContactImagePath_Minimalist(imageName) \
  282. [TUIBundlePath(TUIContactBundle_Minimalist, TUIContactBundle_Key_Class) stringByAppendingPathComponent:imageName]
  283. #define TUIGroupImagePath_Minimalist(imageName) [TUIBundlePath(TUIGroupBundle_Minimalist, TUIGroupBundle_Key_Class) stringByAppendingPathComponent:imageName]
  284. #define TUISearchImagePath_Minimalist(imageName) [TUIBundlePath(TUISearchBundle_Minimalist, TUISearchBundle_Key_Class) stringByAppendingPathComponent:imageName]
  285. #define TUIPollImagePath_Minimalist(imageName) [TUIBundlePath(TUIPollBundle_Minimalist, TUIPollBundle_Key_Class) stringByAppendingPathComponent:imageName]
  286. #define TUIGroupNoteImagePath_Minimalist(imageName) \
  287. [TUIBundlePath(TUIGroupNoteBundle_Minimalist, TUIGroupNoteBundle_Key_Class) stringByAppendingPathComponent:imageName]
  288. #define TUITranslationImagePath_Minimalist(imageName) \
  289. [TUIBundlePath(TUITranslationBundle_Minimalist, TUITranslationBundle_Key_Class) stringByAppendingPathComponent:imageName]
  290. //-----
  291. /////////////////////////////////////////////////////////////////////////////////
  292. //
  293. // File Cache
  294. //
  295. /////////////////////////////////////////////////////////////////////////////////
  296. #define TUIKit_DB_Path [NSHomeDirectory() stringByAppendingString:@"/Documents/com_tencent_imsdk_data/"]
  297. #define TUIKit_Image_Path [NSHomeDirectory() stringByAppendingString:@"/Documents/com_tencent_imsdk_data/image/"]
  298. #define TUIKit_Video_Path [NSHomeDirectory() stringByAppendingString:@"/Documents/com_tencent_imsdk_data/video/"]
  299. #define TUIKit_Voice_Path [NSHomeDirectory() stringByAppendingString:@"/Documents/com_tencent_imsdk_data/voice/"]
  300. #define TUIKit_File_Path [NSHomeDirectory() stringByAppendingString:@"/Documents/com_tencent_imsdk_data/file/"]
  301. /////////////////////////////////////////////////////////////////////////////////
  302. //
  303. // Custom view
  304. //
  305. /////////////////////////////////////////////////////////////////////////////////
  306. // input
  307. #define TUIInputMoreCellKey_VideoCall @"TUIInputMoreCellKey_VideoCall"
  308. #define TUIInputMoreCellKey_AudioCall @"TUIInputMoreCellKey_AudioCall"
  309. #define TUIInputMoreCellKey_Link @"TUIInputMoreCellKey_Link"
  310. #define TUIInputMoreCellKey_Poll @"TUIInputMoreCellKey_Poll"
  311. #define TUIInputMoreCellKey_GroupNote @"TUIInputMoreCellKey_GroupNote"
  312. // cell
  313. #define TMessageCell_Name @"TMessageCell_Name"
  314. #define TMessageCell_Data_Name @"TMessageCell_Data_Name"
  315. #define TMessageCell_Head_Width 45
  316. #define TMessageCell_Head_Height 45
  317. #define TMessageCell_Head_Size CGSizeMake(45, 45)
  318. #define TMessageCell_Padding 8
  319. #define TMessageCell_Margin 8
  320. #define TMessageCell_Indicator_Size CGSizeMake(20, 20)
  321. // text cell
  322. #define TTextMessageCell_ReuseId @"TTextMessageCell"
  323. #define TTextMessageCell_Height_Min (TMessageCell_Head_Size.height + 2 * TMessageCell_Padding)
  324. #define TTextMessageCell_Text_PADDING (160)
  325. #define TTextMessageCell_Text_Width_Max (Screen_Width - TTextMessageCell_Text_PADDING)
  326. #define TTextMessageCell_Margin 12
  327. // system cell
  328. #define TSystemMessageCell_ReuseId @"TSystemMessageCell"
  329. #define TSystemMessageCell_Text_Width_Max (Screen_Width * 0.5)
  330. #define TSystemMessageCell_Margin 5
  331. // joinGroup cell
  332. #define TJoinGroupMessageCell_ReuseId @"TJoinGroupMessageCell"
  333. #define TJoinGroupMessageCell_Text_Width_Max (Screen_Width * 0.5)
  334. #define TJoinGroupMessageCell_Margin 5
  335. // image cell
  336. #define TImageMessageCell_ReuseId @"TImageMessageCell"
  337. #define TImageMessageCell_Image_Width_Max (Screen_Width * 0.4)
  338. #define TImageMessageCell_Image_Height_Max TImageMessageCell_Image_Width_Max
  339. #define TImageMessageCell_Margin_2 8
  340. #define TImageMessageCell_Margin_1 16
  341. #define TImageMessageCell_Progress_Color RGBA(0, 0, 0, 0.5)
  342. // face cell
  343. #define TFaceMessageCell_ReuseId @"TFaceMessageCell"
  344. #define TFaceMessageCell_Image_Width_Max (Screen_Width * 0.25)
  345. #define TFaceMessageCell_Image_Height_Max TFaceMessageCell_Image_Width_Max
  346. #define TFaceMessageCell_Margin 16
  347. // file cell
  348. #define TFileMessageCell_ReuseId @"TFileMessageCell"
  349. #define TFileMessageCell_Container_Size CGSizeMake((474 * 0.5), (124 * 0.5))
  350. #define TFileMessageCell_Margin 10
  351. #define TFileMessageCell_Progress_Color RGBA(0, 0, 0, 0.5)
  352. // video cell
  353. #define TVideoMessageCell_ReuseId @"TVideoMessageCell"
  354. #define TVideoMessageCell_Image_Width_Max (Screen_Width * 0.4)
  355. #define TVideoMessageCell_Image_Height_Max TVideoMessageCell_Image_Width_Max
  356. #define TVideoMessageCell_Margin_3 4
  357. #define TVideoMessageCell_Margin_2 8
  358. #define TVideoMessageCell_Margin_1 16
  359. #define TVideoMessageCell_Play_Size CGSizeMake(35, 35)
  360. #define TVideoMessageCell_Progress_Color RGBA(0, 0, 0, 0.5)
  361. // voice cell
  362. #define TVoiceMessageCell_ReuseId @"TVoiceMessaageCell"
  363. #define TVoiceMessageCell_Max_Duration 60.0
  364. #define TVoiceMessageCell_Height TMessageCell_Head_Size.height
  365. #define TVoiceMessageCell_Margin 12
  366. #define TVoiceMessageCell_Back_Width_Max (Screen_Width * 0.4)
  367. #define TVoiceMessageCell_Back_Width_Min 60
  368. #define TVoiceMessageCell_Duration_Size CGSizeMake(33, 33)
  369. // group live cell
  370. #define TGroupLiveMessageCell_ReuseId @"TGroupLiveMessageCell"
  371. // repply message cell
  372. #define TReplyMessageCell_ReuseId @"TUIReplyMessageCell"
  373. #define TUIReferenceMessageCell_ReuseId @"TUIReferenceMessageCell"
  374. // relay message cell
  375. #define TRelayMessageCell_ReuserId @"TRelayMessageCell"
  376. #define TRelayMessageCell_Text_PADDING (230)
  377. #define TRelayMessageCell_Text_Height_Max (100)
  378. #define TRelayMessageCell_Text_Width_Max (Screen_Width - TRelayMessageCell_Text_PADDING)
  379. // text view
  380. #define TTextView_Height (49)
  381. #define TTextView_Button_Size CGSizeMake(30, 30)
  382. #define TTextView_Margin 6
  383. #define TTextView_TextView_Height_Min (TTextView_Height - 2 * TTextView_Margin)
  384. #define TTextView_TextView_Height_Max 80
  385. // face view
  386. #define TFaceView_Height 180
  387. #define TFaceView_Margin 12
  388. #define TFaceView_Page_Padding 20
  389. #define TFaceView_Page_Height 30
  390. // menu view
  391. #define TMenuView_Send_Color RGBA(87, 190, 105, 1.0)
  392. #define TMenuView_Margin 6
  393. #define TMenuView_Menu_Height 40
  394. // more view
  395. #define TMoreView_Column_Count 4
  396. #define TMoreView_Section_Padding 24
  397. #define TMoreView_Margin 20
  398. #define TMoreView_Page_Height 30
  399. // menu item cell
  400. #define TMenuCell_ReuseId @"TMenuCell"
  401. #define TMenuCell_Margin 6
  402. #define TMenuCell_Line_ReuseId @"TMenuLineCell"
  403. #define TMenuCell_Background_Color RGBA(246, 246, 246, 1.0)
  404. #define TMenuCell_Background_Color_Dark RGBA(30, 30, 30, 1.0)
  405. #define TMenuCell_Selected_Background_Color RGBA(255, 255, 255, 1.0)
  406. #define TMenuCell_Selected_Background_Color_Dark RGBA(41, 41, 41, 1.0)
  407. // more item cell
  408. #define TMoreCell_ReuseId @"TMoreCell"
  409. #define TMoreCell_Margin 5
  410. #define TMoreCell_Image_Size CGSizeMake(65, 65)
  411. #define TMoreCell_Title_Height 20
  412. // face item cell
  413. #define TFaceCell_ReuseId @"TFaceCell"
  414. // group member cell
  415. #define TGroupMemberCell_ReuseId @"TGroupMemberCell"
  416. #define TGroupMemberCell_Margin 5
  417. #define TGroupMemberCell_Head_Size CGSizeMake(50, 50)
  418. #define TGroupMemberCell_Name_Height 20
  419. // conversation cell
  420. #define TConversationCell_Height 72
  421. #define TConversationCell_Margin 12
  422. #define TConversationCell_Margin_Text 14
  423. #define TConversationCell_Margin_Disturb 16
  424. #define TConversationCell_Margin_Disturb_Dot 10
  425. #define TConversationCell_Height_LiteMode 62
  426. // AudioCall cell
  427. #define TUIAudioCallUserCell_ReuseId @"TUIAudioCallUserCell"
  428. // VideoCall cell
  429. #define TUIVideoCallUserCell_ReuseId @"TUIVideoCallUserCell"
  430. // pop view
  431. #define TUIPopView_Arrow_Size CGSizeMake(15, 10)
  432. #define TUIPopView_Background_Color RGBA(188, 188, 188, 0.5)
  433. #define TUIPopView_Background_Color_Dark RGBA(76, 76, 76, 0.5)
  434. // pop cell
  435. #define TUIPopCell_ReuseId @"TUIPopCell"
  436. #define TUIPopCell_Height 45
  437. #define TUIPopCell_Margin 18
  438. #define TUIPopCell_Padding 12
  439. // unRead
  440. #define TUnReadView_Margin_TB 2
  441. #define TUnReadView_Margin_LR 4
  442. // message controller
  443. #define TMessageController_Header_Height 40
  444. // members controller
  445. #define TGroupMembersController_Margin 20
  446. #define TGroupMembersController_Row_Count 5
  447. // add c2c controller
  448. #define TAddC2CController_Margin 10
  449. // add group controller
  450. #define TAddGroupController_Margin 15
  451. // add member controller
  452. #define TAddMemberController_Margin 15
  453. // delete member controller
  454. #define TDeleteMemberController_Margin 15
  455. // add cell
  456. #define TAddCell_ReuseId @"TAddCell"
  457. #define TAddCell_Height 55
  458. #define TAddCell_Margin 10
  459. #define TAddCell_Select_Size CGSizeMake(25, 25)
  460. #define TAddCell_Head_Size CGSizeMake(38, 38)
  461. // modify view
  462. #define TModifyView_Background_Color RGBA(0, 0, 0, 0.5)
  463. #define TModifyView_Background_Color_Dark RGBA(76, 76, 76, 0.5)
  464. #define TModifyView_Confirm_Color RGBA(44, 145, 247, 1.0)
  465. // record
  466. #define Record_Background_Color RGBA(0, 0, 0, 0.6)
  467. #define Record_Background_Size CGSizeMake(Screen_Width * 0.4, Screen_Width * 0.4)
  468. #define Record_Title_Height 30
  469. #define Record_Title_Background_Color RGBA(186, 60, 65, 1.0)
  470. #define Record_Margin 8
  471. // key value cell
  472. #define TKeyValueCell_ReuseId @"TKeyValueCell"
  473. #define TKeyValueCell_Indicator_Size CGSizeMake(15, 15)
  474. #define TKeyValueCell_Margin 10
  475. #define TKeyValueCell_Height 50
  476. // button cell
  477. #define TButtonCell_ReuseId @"TButtonCell"
  478. #define TButtonCell_Height 56
  479. #define TButtonCell_Margin 1
  480. // switch cell
  481. #define TSwitchCell_ReuseId @"TSwitchCell"
  482. #define TSwitchCell_Height 50
  483. #define TSwitchCell_Margin 10
  484. // personal common cell
  485. #define TPersonalCommonCell_Image_Size CGSizeMake(48, 48)
  486. #define TPersonalCommonCell_Margin 20
  487. #define TPersonalCommonCell_Indicator_Size CGSizeMake(15, 15)
  488. // group common cell
  489. #define TGroupCommonCell_ReuseId @"TGroupCommonCell"
  490. #define TGroupCommonCell_Image_Size CGSizeMake(80, 80)
  491. #define TGroupCommonCell_Margin 10
  492. #define TGroupCommonCell_Indicator_Size CGSizeMake(15, 15)
  493. // gropu member cell
  494. #define TGroupMembersCell_ReuseId @"TGroupMembersCell"
  495. #define TGroupMembersCell_Column_Count 5
  496. #define TGroupMembersCell_Row_Count 2
  497. #define TGroupMembersCell_Margin 10
  498. #define TGroupMembersCell_Image_Size CGSizeMake(60, 60)
  499. // navigationbar indicator view
  500. #define TUINaviBarIndicatorView_Margin 5
  501. // controller commom color
  502. #define TController_Background_Color RGBA(255, 255, 255, 1.0)
  503. #define TController_Background_Color_Dark RGBA(25, 25, 25, 1.0)
  504. // title commom color
  505. #define TText_Color [UIColor blackColor]
  506. #define TText_Color_Dark RGB(217, 217, 217)
  507. #define TText_OutMessage_Color_Dark RGB(0, 15, 0)
  508. // cell commom color
  509. #define TCell_Nomal [UIColor whiteColor]
  510. #define TCell_Nomal_Dark RGB(35, 35, 35)
  511. #define TCell_Touched RGB(219, 219, 219)
  512. #define TCell_Touched_Dark RGB(47, 47, 47)
  513. #define TCell_OnTop RGB(247, 247, 247)
  514. #define TCell_OnTop_Dark RGB(47, 47, 47)
  515. // line commom color
  516. #define TLine_Color RGBA(188, 188, 188, 0.6)
  517. #define TLine_Color_Dark RGBA(35, 35, 35, 0.6)
  518. #define TLine_Heigh 0.5
  519. // page commom color
  520. #define TPage_Color RGBA(222, 222, 222, 1.0)
  521. #define TPage_Color_Dark RGBA(55, 55, 55, 1.0)
  522. #define TPage_Current_Color RGBA(125, 125, 125, 1.0)
  523. #define TPage_Current_Color_Dark RGBA(140, 140, 140, 1.0)
  524. // input view commom color
  525. #define TInput_Background_Color RGBA(235, 240, 246, 1.0)
  526. #define TInput_Background_Color_Dark RGBA(30, 30, 30, 1.0)
  527. // rich
  528. #define kDefaultRichCellHeight 50
  529. #define kDefaultRichCellMargin 8
  530. #define kRichCellDescColor [UIColor blackColor]
  531. #define kRichCellValueColor [UIColor grayColor]
  532. #define kRichCellTextFont [UIFont systemFontOfSize:14]
  533. /////////////////////////////////////////////////////////////////////////////////
  534. //
  535. // Notification
  536. //
  537. /////////////////////////////////////////////////////////////////////////////////
  538. /**
  539. * 消息状态变更通知
  540. * Notification of a change in message state
  541. */
  542. #define TUIKitNotification_onMessageStatusChanged @"TUIKitNotification_onMessageStatusChanged"
  543. /**
  544. * 收到套餐包不支持接口的错误通知
  545. * Received error notification that the package is not supported
  546. */
  547. #define TUIKitNotification_onReceivedUnsupportInterfaceError @"TUIKitNotification_onReceivedUnsupportInterfaceError"
  548. /**
  549. * 收到增值包不支持接口的错误通知
  550. * Received error notification that the package is not supported
  551. */
  552. #define TUIKitNotification_onReceivedValueAddedUnsupportInterfaceError @"TUIKitNotification_onReceivedValueAddedUnsupportInterfaceError"
  553. /**
  554. * 会话列表更新时收到的未读数更新通知
  555. * Unread update notifications received when the Conversation list is updated
  556. */
  557. #define TUIKitNotification_onConversationMarkUnreadCountChanged @"TUIKitNotification_onConversationMarkUnreadCountChanged"
  558. #define TUIKitNotification_onConversationMarkUnreadCountChanged_DataProvider @"dataProvider"
  559. #define TUIKitNotification_onConversationMarkUnreadCountChanged_MarkUnreadCount @"markUnreadCount"
  560. #define TUIKitNotification_onConversationMarkUnreadCountChanged_MarkHideUnreadCount @"markHideUnreadCount"
  561. #define TUIKitNotification_onConversationMarkUnreadCountChanged_MarkUnreadMap @"markUnreadMap"
  562. /////////////////////////////////////////////////////////////////////////////////
  563. //
  564. // TUICore
  565. //
  566. /////////////////////////////////////////////////////////////////////////////////
  567. #pragma mark - TUICore_TUIChat_Service
  568. #define TUICore_TUIChatService @"TUICore_TUIChatService"
  569. #define TUICore_TUIChatService_Minimalist @"TUICore_TUIChatService_Minimalist"
  570. #define TUICore_TUIChatService_GetDisplayStringMethod @"TUICore_TUIChatService_GetDisplayStringMethod"
  571. #define TUICore_TUIChatService_GetDisplayStringMethod_MsgKey @"msg"
  572. #define TUICore_TUIChatService_SendMessageMethod @"TUICore_TUIChatService_SendMessageMethod"
  573. #define TUICore_TUIChatService_SendMessageMethod_MsgKey @"TUICore_TUIChatService_SendMessageMethod_MsgKey"
  574. #define TUICore_TUIChatService_SetChatExtensionMethod @"TUICore_TUIChatService_SetChatExtensionMethod"
  575. #define TUICore_TUIChatService_SetChatExtensionMethod_EnableVideoCallKey @"TUICore_TUIChatService_SetChatExtensionMethod_EnableVideoCallKey"
  576. #define TUICore_TUIChatService_SetChatExtensionMethod_EnableAudioCallKey @"TUICore_TUIChatService_SetChatExtensionMethod_EnableAudioCallKey"
  577. #define TUICore_TUIChatService_SetChatExtensionMethod_EnableLinkKey @"TUICore_TUIChatService_SetChatExtensionMethod_EnableLinkKey"
  578. #define TUICore_TUIChatService_AppendCustomMessageMethod @"TUICore_TUIChatService_AppendCustomMessageMethod"
  579. #pragma mark - TUICore_TUIChat_Notify
  580. #define TUICore_TUIChatNotify @"TUICore_TUIChatNotify"
  581. #define TUICore_TUIChatNotify_SendMessageSubKey @"TUICore_TUIChatNotify_SendMessageSubKey"
  582. #define TUICore_TUIChatNotify_SendMessageSubKey_Code @"TUICore_TUIChatNotify_SendMessageSubKey_Code"
  583. #define TUICore_TUIChatNotify_SendMessageSubKey_Desc @"TUICore_TUIChatNotify_SendMessageSubKey_Desc"
  584. #define TUICore_TUIChatNotify_SendMessageSubKey_Message @"TUICore_TUIChatNotify_SendMessageSubKey_Message"
  585. // 消息 cellData 被展示的通知
  586. // The notification of displaying the message cell data
  587. #define TUICore_TUIChatNotify_MessageDisplayedSubKey @"TUICore_TUIChatNotify_MessageDisplayedSubKey"
  588. #pragma mark - TUICore_TUIChat_Extension
  589. #define TUICore_TUIChatExtension_GetMoreCellInfo_VideoCall @"TUICore_TUIChatExtension_GetMoreCellInfo_VideoCall"
  590. #define TUICore_TUIChatExtension_GetMoreCellInfo_AudioCall @"TUICore_TUIChatExtension_GetMoreCellInfo_AudioCall"
  591. #define TUICore_TUIChatExtension_GetMoreCellInfo_UserID @"TUICore_TUIChatExtension_GetMoreCellInfo_UserID"
  592. #define TUICore_TUIChatExtension_GetMoreCellInfo_GroupID @"TUICore_TUIChatExtension_GetMoreCellInfo_GroupID"
  593. #define TUICore_TUIChatExtension_GetMoreCellInfo_View @"TUICore_TUIChatExtension_GetMoreCellInfo_View"
  594. // 聊天页面导航栏右侧的 "更多" UI 扩展
  595. // UI extension on the right side of navigation bar in chat page
  596. #define TUICore_TUIChatExtension_NavigationMoreItem_ClassicExtensionID @"TUICore_TUIChatExtension_NavigationMoreItem_ClassicExtensionID"
  597. #define TUICore_TUIChatExtension_NavigationMoreItem_MinimalistExtensionID @"TUICore_TUIChatExtension_NavigationMoreItem_MinimalistExtensionID"
  598. #define TUICore_TUIChatExtension_NavigationMoreItem_UserID @"TUICore_TUIChatExtension_NavigationMoreItem_UserID"
  599. #define TUICore_TUIChatExtension_NavigationMoreItem_GroupID @"TUICore_TUIChatExtension_NavigationMoreItem_GroupID"
  600. #define TUICore_TUIChatExtension_NavigationMoreItem_FilterVideoCall @"TUICore_TUIChatExtension_NavigationMoreItem_FilterVideoCall"
  601. #define TUICore_TUIChatExtension_NavigationMoreItem_FilterAudioCall @"TUICore_TUIChatExtension_NavigationMoreItem_FilterAudioCall"
  602. #define TUICore_TUIChatExtension_NavigationMoreItem_ItemSize @"TUICore_TUIChatExtension_NavigationMoreItem_ItemSize"
  603. #define TUICore_TUIChatExtension_NavigationMoreItem_ItemImage @"TUICore_TUIChatExtension_NavigationMoreItem_ItemImage"
  604. #define TUICore_TUIChatExtension_NavigationMoreItem_PushVC @"TUICore_TUIChatExtension_NavigationMoreItem_PushVC"
  605. // 聊天页面底部输入区域 “更多” UI 扩展
  606. // UI extension for the input area at the bottom of the chat page
  607. #define TUICore_TUIChatExtension_InputViewMoreItem_ClassicExtensionID @"TUICore_TUIChatExtension_InputViewMoreItem_ClassicExtensionID"
  608. #define TUICore_TUIChatExtension_InputViewMoreItem_MinimalistExtensionID @"TUICore_TUIChatExtension_InputViewMoreItem_MinimalistExtensionID"
  609. #define TUICore_TUIChatExtension_InputViewMoreItem_UserID @"TUICore_TUIChatExtension_InputViewMoreItem_UserID"
  610. #define TUICore_TUIChatExtension_InputViewMoreItem_GroupID @"TUICore_TUIChatExtension_InputViewMoreItem_GroupID"
  611. #define TUICore_TUIChatExtension_InputViewMoreItem_FilterVideoCall @"TUICore_TUIChatExtension_InputViewMoreItem_FilterVideoCall"
  612. #define TUICore_TUIChatExtension_InputViewMoreItem_FilterAudioCall @"TUICore_TUIChatExtension_InputViewMoreItem_FilterAudioCall"
  613. #define TUICore_TUIChatExtension_InputViewMoreItem_ItemSize @"TUICore_TUIChatExtension_InputViewMoreItem_ItemSize"
  614. #define TUICore_TUIChatExtension_InputViewMoreItem_ItemImage @"TUICore_TUIChatExtension_InputViewMoreItem_ItemImage"
  615. #define TUICore_TUIChatExtension_InputViewMoreItem_ItemTitle @"TUICore_TUIChatExtension_InputViewMoreItem_ItemTitle"
  616. #define TUICore_TUIChatExtension_InputViewMoreItem_PushVC @"TUICore_TUIChatExtension_InputViewMoreItem_PushVC"
  617. #define TUICore_TUIChatExtension_InputViewMoreItem_VC @"TUICore_TUIChatExtension_InputViewMoreItem_VC"
  618. #define TUICore_TUIChatExtension_InputViewMoreItem_ActionVC @"TUICore_TUIChatExtension_InputViewMoreItem_ActionVC"
  619. // 聊天页面消息长按弹框UI 扩展
  620. // Chat page message long press pop-up UI extension.
  621. #define TUICore_TUIChatExtension_PopMenuActionItem_ClassicExtensionID @"TUICore_TUIChatExtension_PopMenuActionItem_ClassicExtensionID"
  622. #define TUICore_TUIChatExtension_PopMenuActionItem_MinimalistExtensionID @"TUICore_TUIChatExtension_PopMenuActionItem_MinimalistExtensionID"
  623. #define TUICore_TUIChatExtension_PopMenuActionItem_TargetVC @"TUICore_TUIChatExtension_PopMenuActionItem_TargetVC"
  624. #define TUICore_TUIChatExtension_PopMenuActionItem_ClickCell @"TUICore_TUIChatExtension_PopMenuActionItem_ClickCell"
  625. // Chat message cell bottom container UI extension.
  626. #define TUICore_TUIChatExtension_BottomContainer_ClassicExtensionID @"TUICore_TUIChatExtension_BottomContainer_ClassicExtensionID"
  627. #define TUICore_TUIChatExtension_BottomContainer_MinimalistExtensionID @"TUICore_TUIChatExtension_BottomContainer_MinimalistExtensionID"
  628. #define TUICore_TUIChatExtension_BottomContainer_CellData @"TUICore_TUIChatExtension_BottomContainer_CellData"
  629. #define TUICore_TUIChatExtension_BottomContainer_VC @"TUICore_TUIChatExtension_BottomContainer_VC"
  630. #pragma mark - TUICore_TUIChat_ObjectFactory
  631. #define TUICore_TUIChatObjectFactory @"TUICore_TUIChatObjectFactory"
  632. #define TUICore_TUIChatObjectFactory_Minimalist @"TUICore_TUIChatObjectFactory_Minimalist"
  633. #pragma mark - TUICore_TUIChat_ObjectFactory_Route
  634. #define TUICore_TUIChatObjectFactory_ChatViewController_Classic @"TUICore_TUIChatObjectFactory_ChatViewController_Classic"
  635. #define TUICore_TUIChatObjectFactory_ChatViewController_Minimalist @"TUICore_TUIChatObjectFactory_ChatViewController_Minimalist"
  636. #define TUICore_TUIChatObjectFactory_ChatViewController_Title @"TUICore_TUIChatObjectFactory_ChatViewController_Title"
  637. #define TUICore_TUIChatObjectFactory_ChatViewController_UserID @"TUICore_TUIChatObjectFactory_ChatViewController_UserID"
  638. #define TUICore_TUIChatObjectFactory_ChatViewController_GroupID @"TUICore_TUIChatObjectFactory_ChatViewController_GroupID"
  639. #define TUICore_TUIChatObjectFactory_ChatViewController_ConversationID @"TUICore_TUIChatObjectFactory_ChatViewController_ConversationID"
  640. #define TUICore_TUIChatObjectFactory_ChatViewController_AvatarImage @"TUICore_TUIChatObjectFactory_ChatViewController_AvatarImage"
  641. #define TUICore_TUIChatObjectFactory_ChatViewController_AvatarUrl @"TUICore_TUIChatObjectFactory_ChatViewController_AvatarUrl"
  642. #define TUICore_TUIChatObjectFactory_ChatViewController_HighlightKeyword @"TUICore_TUIChatObjectFactory_ChatViewController_HighlightKeyword"
  643. #define TUICore_TUIChatObjectFactory_ChatViewController_LocateMessage @"TUICore_TUIChatObjectFactory_ChatViewController_LocateMessage"
  644. #define TUICore_TUIChatObjectFactory_ChatViewController_AtMsgSeqs @"TUICore_TUIChatObjectFactory_ChatViewController_AtMsgSeqs"
  645. #define TUICore_TUIChatObjectFactory_ChatViewController_Draft @"TUICore_TUIChatObjectFactory_ChatViewController_Draft"
  646. #pragma mark - TUICore_TUIConversation_Service
  647. #define TUICore_TUIConversationService @"TUICore_TUIConversationService"
  648. #define TUICore_TUIConversationService_Minimalist @"TUICore_TUIConversationService_Minimalist"
  649. #pragma mark - TUICore_TUIConversation_Notify
  650. #define TUICore_TUIConversationNotify @"TUICore_TUIConversationNotify"
  651. #define TUICore_TUIConversationNotify_RemoveConversationSubKey @"TUICore_TUIConversationNotify_RemoveConversationSubKey"
  652. #define TUICore_TUIConversationNotify_RemoveConversationSubKey_ConversationID @"TUICore_TUIConversationNotify_RemoveConversationSubKey_ConversationID"
  653. #define TUICore_TUIConversationNotify_ClearConversationUIHistorySubKey @"TUICore_TUIConversationNotify_ClearConversationUIHistorySubKey"
  654. #pragma mark - TUICore_TUIConversation_Extension
  655. // 会话列表页面的 banner 扩展
  656. // UI extension for the banner in the conversation list page
  657. #define TUICore_TUIConversationExtension_ConversationListBanner_ClassicExtensionID @"TUICore_TUIConversationExtension_ConversationListBanner_ClassicExtensionID"
  658. #define TUICore_TUIConversationExtension_ConversationListBanner_MinimalistExtensionID \
  659. @"TUICore_TUIConversationExtension_ConversationListBanner_MinimalistExtensionID"
  660. #define TUICore_TUIConversationExtension_ConversationListBanner_BannerSize @"TUICore_TUIConversationExtension_ConversationListBanner_BannerSize"
  661. #define TUICore_TUIConversationExtension_ConversationListBanner_ModalVC @"TUICore_TUIConversationExtension_ConversationListBanner_ModalVC"
  662. #pragma mark - TUICore_TUIConversation_ObjectFactory
  663. #define TUICore_TUIConversationObjectFactory @"TUICore_TUIConversationObjectFactory"
  664. #define TUICore_TUIConversationObjectFactory_Minimalist @"TUICore_TUIConversationObjectFactory_Minimalist"
  665. #define TUICore_TUIConversationObjectFactory_GetConversationControllerMethod @"TUICore_TUIConversationObjectFactory_GetConversationControllerMethod"
  666. #pragma mark - TUICore_TUIConversation_ObjectFactory_Route
  667. // Route to conversation select page
  668. #define TUICore_TUIConversationObjectFactory_ConversationSelectVC_Classic @"TUICore_TUIConversationObjectFactory_ConversationSelectVC_Classic"
  669. #define TUICore_TUIConversationObjectFactory_ConversationSelectVC_Minimalist @"TUICore_TUIConversationObjectFactory_ConversationSelectVC_Minimalist"
  670. #define TUICore_TUIConversationObjectFactory_ConversationSelectVC_ResultList @"TUICore_TUIConversationObjectFactory_ConversationSelectVC_ResultList"
  671. #define TUICore_TUIConversationObjectFactory_ConversationSelectVC_ResultList_ConversationID \
  672. @"TUICore_TUIConversationObjectFactory_ConversationSelectVC_ResultList_ConversationID"
  673. #define TUICore_TUIConversationObjectFactory_ConversationSelectVC_ResultList_Title @"TUICore_TUIConversationObjectFactory_ConversationSelectVC_ResultList_Title"
  674. #define TUICore_TUIConversationObjectFactory_ConversationSelectVC_ResultList_UserID \
  675. @"TUICore_TUIConversationObjectFactory_ConversationSelectVC_ResultList_UserID"
  676. #define TUICore_TUIConversationObjectFactory_ConversationSelectVC_ResultList_GroupID \
  677. @"TUICore_TUIConversationObjectFactory_ConversationSelectVC_ResultList_GroupID"
  678. // 会话分组列表 banner 扩展
  679. // UI extension for the banner in the conversation group list
  680. #define TUICore_TUIConversationExtension_ConversationGroupListBanner_ClassicExtensionID \
  681. @"TUICore_TUIConversationExtension_ConversationGroupListBanner_ClassicExtensionID"
  682. #define TUICore_TUIConversationExtension_ConversationGroupListBanner_GroupItemKey @"TUICore_TUIConversationExtension_ConversationGroupListBanner_GroupItemKey"
  683. // 会话分组管理按钮扩展
  684. // UI extension for the conversation group manager
  685. #define TUICore_TUIConversationExtension_ConversationGroupManagerContainer_ClassicExtensionID \
  686. @"TUICore_TUIConversationExtension_ConversationGroupManagerContainer_ClassicExtensionID"
  687. #define TUICore_TUIConversationExtension_ConversationGroupManagerContainer_ParentVCKey \
  688. @"TUICore_TUIConversationExtension_ConversationGroupManagerContainer_ParentVCKey"
  689. // 会话列表界面扩展
  690. // UI extension for the conversation list
  691. #define TUICore_TUIConversationExtension_ConversationListContainer_ClassicExtensionID \
  692. @"TUICore_TUIConversationExtension_ConversationListContainer_ClassicExtensionID"
  693. #define TUICore_TUIConversationExtension_ConversationListContainer_GroupNameKey @"TUICore_TUIConversationExtension_ConversationListContainer_GroupNameKey"
  694. // 会话 cell 右上角区域扩展
  695. // UI extension for the conversation cell upper right corner
  696. #define TUICore_TUIConversationExtension_ConversationCellUpperRightCorner_ClassicExtensionID \
  697. @"TUICore_TUIConversationExtension_ConversationCellUpperRightCorner_ClassicExtensionID"
  698. #define TUICore_TUIConversationExtension_ConversationCellUpperRightCorner_GroupListKey \
  699. @"TUICore_TUIConversationExtension_ConversationCellUpperRightCorner_GroupListKey"
  700. #define TUICore_TUIConversationExtension_ConversationCellUpperRightCorner_MarkListKey \
  701. @"TUICore_TUIConversationExtension_ConversationCellUpperRightCorner_MarkListKey"
  702. // 会话 cell 左滑点击"更多"后的 action 扩展
  703. // UI extension for click more
  704. #define TUICore_TUIConversationExtension_ConversationCellMoreAction_ClassicExtensionID \
  705. @"TUICore_TUIConversationExtension_ConversationCellMoreAction_ClassicExtensionID"
  706. #define TUICore_TUIConversationExtension_ConversationCellAction_ConversationIDKey @"TUICore_TUIConversationExtension_ConversationCellAction_ConversationIDKey"
  707. #define TUICore_TUIConversationExtension_ConversationCellAction_MarkListKey @"TUICore_TUIConversationExtension_ConversationCellAction_MarkListKey"
  708. #define TUICore_TUIConversationExtension_ConversationCellAction_GroupListKey @"TUICore_TUIConversationExtension_ConversationCellAction_GroupListKey"
  709. #pragma mark - TUICore_TUIConversationGroupNotify
  710. #define TUICore_TUIConversationGroupNotify @"TUICore_TUIConversationGroupNotify"
  711. #define TUICore_TUIConversationGroupNotify_GroupListReloadKey @"TUICore_TUIConversationGroupNotify_GroupListReloadKey"
  712. #define TUICore_TUIConversationGroupNotify_GroupAddKey @"TUICore_TUIConversationGroupNotify_GroupAddKey"
  713. #define TUICore_TUIConversationGroupNotify_GroupUpdateKey @"TUICore_TUIConversationGroupNotify_GroupUpdateKey"
  714. #define TUICore_TUIConversationGroupNotify_GroupRenameKey @"TUICore_TUIConversationGroupNotify_GroupRenameKey"
  715. #define TUICore_TUIConversationGroupNotify_GroupDeleteKey @"TUICore_TUIConversationGroupNotify_GroupDeleteKey"
  716. #pragma mark - UICore_TUIConversationGroupExtension
  717. #define TUICore_TUIConversationGroupExtension_ConversationGroupListSort_ClassicExtensionID \
  718. @"TUICore_TUIConversationGroupExtension_ConversationGroupListSort_ClassicExtensionID"
  719. #define TUICore_TUIConversationGroupExtension_ConversationGroupListSort_GroupItemKey \
  720. @"TUICore_TUIConversationGroupExtension_ConversationGroupListSort_GroupItemKey"
  721. #pragma mark - TUICore_TUIConversationMarkNotify
  722. #define TUICore_TUIConversationMarkNotify @"TUICore_TUIConversationMarkNotify"
  723. #define TUICore_TUIConversationGroupNotify_MarkAddKey @"TUICore_TUIConversationGroupNotify_MarkAddKey"
  724. #define TUICore_TUIConversationGroupNotify_MarkUpdateKey @"TUICore_TUIConversationGroupNotify_MarkUpdateKey"
  725. #pragma mark - TUICore_TUIContact_Service
  726. #define TUICore_TUIContactService @"TUICore_TUIContactService"
  727. #define TUICore_TUIContactService_Minimalist @"TUICore_TUIContactService_Minimalist"
  728. #pragma mark - TUICore_TUIContact_Notify
  729. #define TUICore_TUIContactNotify @"TUICore_TUIContactNotify"
  730. #define TUICore_TUIContactNotify_UpdateConversationBackgroundImageSubKey @"TUICore_TUIContactNotify_UpdateConversationBackgroundImageSubKey"
  731. #define TUICore_TUIContactNotify_UpdateConversationBackgroundImageSubKey_ConversationID \
  732. @"TUICore_TUIContactNotify_UpdateConversationBackgroundImageSubKey_ConversationID"
  733. #pragma mark - TUICore_TUIContact_Extension
  734. // 好友资料页面的响应菜单扩展
  735. // UI extension for the action menus in the friend profile page
  736. #define TUICore_TUIContactExtension_FriendProfileActionMenu_ClassicExtensionID @"TUICore_TUIContactExtension_FriendProfileActionMenu_ClassicExtensionID"
  737. #define TUICore_TUIContactExtension_FriendProfileActionMenu_MinimalistExtensionID @"TUICore_TUIContactExtension_FriendProfileActionMenu_MinimalistExtensionID"
  738. #define TUICore_TUIContactExtension_FriendProfileActionMenu_UserID @"TUICore_TUIContactExtension_FriendProfileActionMenu_UserID"
  739. #define TUICore_TUIContactExtension_FriendProfileActionMenu_UserIcon @"TUICore_TUIContactExtension_FriendProfileActionMenu_UserIcon"
  740. #define TUICore_TUIContactExtension_FriendProfileActionMenu_UserName @"TUICore_TUIContactExtension_FriendProfileActionMenu_UserName"
  741. #define TUICore_TUIContactExtension_FriendProfileActionMenu_FilterVideoCall @"TUICore_TUIContactExtension_FriendProfileActionMenu_FilterVideoCall"
  742. #define TUICore_TUIContactExtension_FriendProfileActionMenu_FilterAudioCall @"TUICore_TUIContactExtension_FriendProfileActionMenu_FilterAudioCall"
  743. #define TUICore_TUIContactExtension_FriendProfileActionMenu_PushVC @"TUICore_TUIContactExtension_FriendProfileActionMenu_PushVC"
  744. // "我" 个人设置页的设置项扩展
  745. // UI extension for the settings in the "Me" profile page
  746. #define TUICore_TUIContactExtension_MeSettingMenu_ClassicExtensionID @"TUICore_TUIContactExtension_MeSettingMenu_ClassicExtensionID"
  747. #define TUICore_TUIContactExtension_MeSettingMenu_MinimalistExtensionID @"TUICore_TUIContactExtension_MeSettingMenu_MinimalistExtensionID"
  748. #define TUICore_TUIContactExtension_MeSettingMenu_Nav @"TUICore_TUIContactExtension_MeSettingMenu_Nav"
  749. #define TUICore_TUIContactExtension_MeSettingMenu_Data @"TUICore_TUIContactExtension_MeSettingMenu_Data"
  750. #define TUICore_TUIContactExtension_MeSettingMenu_View @"TUICore_TUIContactExtension_MeSettingMenu_View"
  751. #define TUICore_TUIContactExtension_MeSettingMenu_Weight @"TUICore_TUIContactExtension_MeSettingMenu_Weight"
  752. #pragma mark - TUICore_TUIContact_ObjectFactory
  753. #define TUICore_TUIContactObjectFactory @"TUICore_TUIContactObjectFactory"
  754. #define TUICore_TUIContactObjectFactory_Minimalist @"TUICore_TUIContactObjectFactory_Minimalist"
  755. #define TUICore_TUIContactObjectFactory_GetContactControllerMethod @"TUICore_TUIContactObjectFactory_GetContactControllerMethod"
  756. #define TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod @"TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod"
  757. #define TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_TitleKey @"TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_TitleKey"
  758. #define TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_MaxSelectCount \
  759. @"TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_MaxSelectCount"
  760. #define TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_SourceIdsKey \
  761. @"TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_SourceIdsKey"
  762. #define TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_DisableIdsKey \
  763. @"TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_DisableIdsKey"
  764. #define TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_DisplayNamesKey \
  765. @"TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_DisplayNamesKey"
  766. #define TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_CompletionKey \
  767. @"TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_CompletionKey"
  768. #define TUICore_TUIContactObjectFactory_GetFriendProfileControllerMethod @"TUICore_TUIContactObjectFactory_GetFriendProfileControllerMethod"
  769. #define TUICore_TUIContactObjectFactory_GetFriendProfileControllerMethod_FriendProfileKey \
  770. @"TUICore_TUIContactObjectFactory_GetFriendProfileControllerMethod_FriendProfileKey"
  771. #define TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod @"TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod"
  772. #define TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod_TitleKey @"TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod_TitleKey"
  773. #define TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod_GroupNameKey \
  774. @"TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod_GroupNameKey"
  775. #define TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod_GroupTypeKey \
  776. @"TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod_GroupTypeKey"
  777. #define TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod_ContactListKey \
  778. @"TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod_ContactListKey"
  779. #define TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod_CompletionKey \
  780. @"TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod_CompletionKey"
  781. #define TUICore_TUIContactObjectFactory_GetUserOrFriendProfileVCMethod @"TUICore_TUIContactObjectFactory_GetUserOrFriendProfileVCMethod"
  782. #define TUICore_TUIContactObjectFactory_GetUserOrFriendProfileVCMethod_UserIDKey @"TUICore_TUIContactService_etUserOrFriendProfileVCMethod_UserIDKey"
  783. #define TUICore_TUIContactObjectFactory_GetUserOrFriendProfileVCMethod_SuccKey @"TUICore_TUIContactObjectFactory_GetUserOrFriendProfileVCMethod_SuccKey"
  784. #define TUICore_TUIContactObjectFactory_GetUserOrFriendProfileVCMethod_FailKey @"TUICore_TUIContactObjectFactory_GetUserOrFriendProfileVCMethod_FailKey"
  785. #pragma mark - TUICore_TUIContact_ObjectFactory_Route
  786. // 路由到用户个人资料页面
  787. // Route to user profile page
  788. #define TUICore_TUIContactObjectFactory_UserProfileController_Classic @"TUICore_TUIContactObjectFactory_UserProfileController_Classic"
  789. #define TUICore_TUIContactObjectFactory_UserProfileController_Minimalist @"TUICore_TUIContactObjectFactory_UserProfileController_Minimalist"
  790. #define TUICore_TUIContactObjectFactory_UserProfileController_UserProfile @"TUICore_TUIContactObjectFactory_UserProfileController_UserProfile"
  791. #define TUICore_TUIContactObjectFactory_UserProfileController_PendencyData @"TUICore_TUIContactObjectFactory_UserProfileController_PendencyData"
  792. #define TUICore_TUIContactObjectFactory_UserProfileController_ActionType @"TUICore_TUIContactObjectFactory_UserProfileController_ActionType"
  793. #pragma mark - TUICore_TUIGroup_Service
  794. #define TUICore_TUIGroupService @"TUICore_TUIGroupService"
  795. #define TUICore_TUIGroupService_Minimalist @"TUICore_TUIGroupService_Minimalist"
  796. #define TUICore_TUIGroupService_CreateGroupMethod @"TUICore_TUIGroupService_CreateGroupMethod"
  797. #define TUICore_TUIGroupService_CreateGroupMethod_GroupTypeKey @"TUICore_TUIGroupService_CreateGroupMethod_GroupTypeKey"
  798. #define TUICore_TUIGroupService_CreateGroupMethod_OptionKey @"TUICore_TUIGroupService_CreateGroupMethod_OptionKey"
  799. #define TUICore_TUIGroupService_CreateGroupMethod_ContactsKey @"TUICore_TUIGroupService_CreateGroupMethod_ContactsKey"
  800. #define TUICore_TUIGroupService_CreateGroupMethod_CompletionKey @"TUICore_TUIGroupService_CreateGroupMethod_CompletionKey"
  801. #pragma mark - TUICore_TUIGroup_Notify
  802. #define TUICore_TUIGroupNotify @"TUICore_TUIContactNotify"
  803. #define TUICore_TUIGroupNotify_UpdateConversationBackgroundImageSubKey @"TUICore_TUIGroupNotify_UpdateConversationBackgroundImageSubKey"
  804. #define TUICore_TUIGroupNotify_UpdateConversationBackgroundImageSubKey_ConversationID \
  805. @"TUICore_TUIGroupNotify_UpdateConversationBackgroundImageSubKey_ConversationID"
  806. #pragma mark - TUICore_TUIGroup_Extension
  807. // 群资料页面的响应菜单扩展
  808. // UI extension for the action menus in the group infomation page
  809. #define TUICore_TUIGroupExtension_GroupInfoCardActionMenu_MinimalistExtensionID @"TUICore_TUIGroupExtension_GroupInfoCardActionMenu_MinimalistExtensionID"
  810. #define TUICore_TUIGroupExtension_GroupInfoCardActionMenu_GroupID @"TUICore_TUIGroupExtension_GroupInfoCardActionMenu_GroupID"
  811. #define TUICore_TUIGroupExtension_GroupInfoCardActionMenu_FilterVideoCall @"TUICore_TUIGroupExtension_GroupInfoCardActionMenu_FilterVideoCall"
  812. #define TUICore_TUIGroupExtension_GroupInfoCardActionMenu_FilterAudioCall @"TUICore_TUIGroupExtension_GroupInfoCardActionMenu_FilterAudioCall"
  813. #define TUICore_TUIGroupExtension_GroupInfoCardActionMenu_PushVC @"TUICore_TUIGroupExtension_GroupInfoCardActionMenu_PushVC"
  814. #pragma mark - TUICore_TUIGroup_ObjectFactory
  815. #define TUICore_TUIGroupObjectFactory @"TUICore_TUIGroupObjectFactory"
  816. #define TUICore_TUIGroupObjectFactory_Minimalist @"TUICore_TUIGroupObjectFactory_Minimalist"
  817. #define TUICore_TUIGroupObjectFactory_GetGroupRequestViewControllerMethod @"TUICore_TUIGroupObjectFactory_GetGroupRequestViewControllerMethod"
  818. #define TUICore_TUIGroupObjectFactory_GetGroupRequestViewControllerMethod_GroupInfoKey \
  819. @"TUICore_TUIGroupObjectFactory_GetGroupRequestViewControllerMethod_GroupInfoKey"
  820. #pragma mark - TUICore_TUIGroup_ObjectFactory_Route
  821. // 路由到群成员选择页面,提供 TUIRoute 的跳转方式
  822. // Route to the page for selecting group member
  823. #define TUICore_TUIGroupObjectFactory_SelectGroupMemberVC_Classic @"TUICore_TUIGroupObjectFactory_SelectGroupMemberVC_Classic"
  824. #define TUICore_TUIGroupObjectFactory_SelectGroupMemberVC_Minimalist @"TUICore_TUIGroupObjectFactory_SelectGroupMemberVC_Minimalist"
  825. #define TUICore_TUIGroupObjectFactory_SelectGroupMemberVC_GroupID @"TUICore_TUIGroupService_GetSelectGroupMemberViewControllerMethod"
  826. #define TUICore_TUIGroupObjectFactory_SelectGroupMemberVC_Name @"TUICore_TUIGroupService_GetSelectGroupMemberViewControllerMethod_NameKey"
  827. #define TUICore_TUIGroupObjectFactory_SelectGroupMemberVC_OptionalStyle @"TUICore_TUIGroupService_GetSelectGroupMemberViewControllerMethod_optionalStyleKey"
  828. #define TUICore_TUIGroupObjectFactory_SelectGroupMemberVC_SelectedUserIDList \
  829. @"TUICore_TUIGroupService_GetSelectGroupMemberViewControllerMethod_SelectedUserIDListKey"
  830. #define TUICore_TUIGroupObjectFactory_SelectGroupMemberVC_ResultUserList @"TUICore_TUIGroupObjectFactory_SelectGroupMemberVC_ResultUserList"
  831. // 路由到群信息页面,提供 TUIRoute 的跳转方式
  832. // Route to group info page
  833. #define TUICore_TUIGroupObjectFactory_GetGroupInfoVC_Classic @"TUICore_TUIGroupObjectFactory_GetGroupInfoVC_Classic"
  834. #define TUICore_TUIGroupObjectFactory_GetGroupInfoVC_Minimalist @"TUICore_TUIGroupObjectFactory_GetGroupInfoVC_Minimalist"
  835. #define TUICore_TUIGroupObjectFactory_GetGroupInfoVC_GroupID @"TUICore_TUIGroupObjectFactory_GetGroupInfoVC_GroupID"
  836. #pragma mark - TUICore_TUICallKit_TUICallingService
  837. #define TUICore_TUICallingService @"TUICore_TUICallingService"
  838. #define TUICore_TUICallingService_ShowCallingViewMethod @"TUICore_TUICallingService_ShowCallingViewMethod"
  839. #define TUICore_TUICallingService_ShowCallingViewMethod_GroupIDKey @"TUICore_TUICallingService_ShowCallingViewMethod_GroupIDKey"
  840. #define TUICore_TUICallingService_ShowCallingViewMethod_UserIDsKey @"TUICore_TUICallingService_ShowCallingViewMethod_UserIDsKey"
  841. #define TUICore_TUICallingService_ShowCallingViewMethod_CallTypeKey @"TUICore_TUICallingService_ShowCallingViewMethod_CallTypeKey"
  842. #define TUICore_TUICallingService_ReceivePushCallingMethod @"TUICore_TUICallingService_ReceivePushCallingMethod"
  843. #define TUICore_TUICallingService_ShowCallingViewMethod_SignalingInfo @"TUICore_TUICallingService_ShowCallingViewMethod_SignalingInfo"
  844. #define TUICore_TUICallingService_EnableMultiDeviceAbilityMethod @"TUICore_TUICallingService_EnableMultiDeviceAbilityMethod"
  845. #define TUICore_TUICallingService_EnableMultiDeviceAbilityMethod_EnableMultiDeviceAbility \
  846. @"TUICore_TUICallingService_EnableMultiDeviceAbilityMethod_EnableMultiDeviceAbility"
  847. #define TUICore_TUICallingService_EnableFloatWindowMethod @"TUICore_TUICallingService_EnableFloatWindowMethod"
  848. #define TUICore_TUICallingService_EnableFloatWindowMethod_EnableFloatWindow @"TUICore_TUICallingService_EnableFloatWindowMethod_EnableFloatWindow"
  849. #pragma mark - TUICore_TUICallKit_TUIAudioMessageRecordService
  850. #define TUICore_TUIAudioMessageRecordService @"TUIAudioMessageRecordService"
  851. #define TUICore_TUIAudioMessageRecordService_StartRecordAudioMessageMethod @"TUICore_TUIAudioMessageRecordService_StartRecordAudioMessageMethod"
  852. #define TUICore_TUIAudioMessageRecordService_StopRecordAudioMessageMethod @"TUICore_TUIAudioMessageRecordService_StopRecordAudioMessageMethod"
  853. #define TUICore_TUIAudioMessageRecordService_StartRecordAudioMessageMethod_SdkappidKey @"sdkappid"
  854. #define TUICore_TUIAudioMessageRecordService_StartRecordAudioMessageMethod_SignatureKey @"signature"
  855. #define TUICore_TUIAudioMessageRecordService_StartRecordAudioMessageMethod_PathKey @"path"
  856. #pragma mark - TUICore_TUICallKit_TUICallingNotify
  857. #define TUICore_RecordAudioMessageNotify @"TUICore_RecordAudioMessageNotify"
  858. #define TUICore_RecordAudioMessageNotify_StartRecordAudioMessageSubKey @"TUICore_RecordAudioMessageNotify_StartRecordAudioMessageSubKey"
  859. #define TUICore_RecordAudioMessageNotify_StopRecordAudioMessageSubKey @"TUICore_RecordAudioMessageNotify_StopRecordAudioMessageSubKey"
  860. #define TUICore_RecordAudioMessageNotify_RecordAudioVoiceVolumeSubKey @"TUICore_RecordAudioMessageNotify_RecordAudioVoiceVolumeSubKey"
  861. #define TUICore_RecordAudioMessageNotify_RecordAudioVoiceVolumeSubKey_VolumeKey @"volume"
  862. #pragma mark - TUICore_TUICallKit_TUICallingObjectFactory
  863. #define TUICore_TUICallingObjectFactory @"TUICore_TUICallingObjectFactory"
  864. // Get the view controler for displaying call history
  865. #define TUICore_TUICallingObjectFactory_RecordCallsVC @"TUICore_TUICallingObjectFactory_RecordCallsVC"
  866. #define TUICore_TUICallingObjectFactory_RecordCallsVC_UIStyle @"TUICore_TUICallingObjectFactory_RecordCallsVC_UIStyle"
  867. #define TUICore_TUICallingObjectFactory_RecordCallsVC_UIStyle_Classic @"TUICore_TUICallingObjectFactory_RecordCallsVC_UIStyle_Classic"
  868. #define TUICore_TUICallingObjectFactory_RecordCallsVC_UIStyle_Minimalist @"TUICore_TUICallingObjectFactory_RecordCallsVC_UIStyle_Minimalist"
  869. #pragma mark - TUICore_TUIPlugin_Notify
  870. #define TUICore_TUIPluginNotify @"TUICore_TUIPluginNotify"
  871. #define TUICore_TUIPluginNotify_PluginCustomCellClick @"TUICore_TUIPluginNotify_PluginCustomCellClick"
  872. #define TUICore_TUIPluginNotify_PluginCustomCellClick_PushVC @"TUICore_TUIPluginNotify_PluginCustomCellClick_PushVC"
  873. #define TUICore_TUIPluginNotify_PluginCustomCellClick_Cell @"TUICore_TUIPluginNotify_PluginCustomCellClick_Cell"
  874. #define TUICore_TUIPluginNotify_PluginViewSizeChangedSubKey @"TUICore_TUIPluginNotify_PluginViewSizeChangedSubKey"
  875. #define TUICore_TUIPluginNotify_PluginViewSizeChangedSubKey_Message @"TUICore_TUIPluginNotify_PluginViewSizeChangedSubKey_Message"
  876. #pragma mark - TUICore_TUITranslation_Notify
  877. #define TUICore_TUITranslationNotify @"TUICore_TUITranslationNotify"
  878. #define TUICore_TUITranslationNotify_DidChangeTranslationSubKey @"TUICore_TUITranslationNotify_DidChangeTranslationSubKey"
  879. #define TUICore_TUITranslationNotify_DidChangeTranslationSubKey_Data @"TUICore_TUITranslationNotify_DidChangeTranslationSubKey_Data"
  880. #define TUICore_TUITranslationNotify_DidChangeTranslationSubKey_VC @"TUICore_TUITranslationNotify_DidChangeTranslationSubKey_VC"
  881. #define TUICore_TUITranslationNotify_WillForwardTranslationSubKey @"TUICore_TUITranslationNotify_WillForwardTranslationSubKey"
  882. #define TUICore_TUITranslationNotify_WillForwardTranslationSubKey_Text @"TUICore_TUITranslationNotify_WillForwardTranslationSubKey_Text"
  883. // 初始化录制成功,录制成功
  884. #define TUICore_RecordAudioMessageNotifyError_None 0
  885. // 参数为空
  886. #define TUICore_RecordAudioMessageNotifyError_InvalidParam -1001
  887. // 录音被拒绝,当前在通话中
  888. #define TUICore_RecordAudioMessageNotifyError_StatusInCall -1002
  889. // 录音被拒绝,当前录音未结束
  890. #define TUICore_RecordAudioMessageNotifyError_StatusIsAudioRecording -1003
  891. // 录音被拒绝,获取麦克风权限失败
  892. #define TUICore_RecordAudioMessageNotifyError_MicPermissionRefused -1004
  893. // 录音被拒绝,获取音频焦点失败
  894. #define TUICore_RecordAudioMessageNotifyError_RequestAudioFocusFailed -1005
  895. // -1, 初始化录制失败(onLocalRecordBegin)
  896. #define TUICore_RecordAudioMessageNotifyError_RecordInitFailed -2001
  897. // -2, 文件后缀名有误(onLocalRecordBegin)
  898. #define TUICore_RecordAudioMessageNotifyError_PathFormatNotSupport -2002
  899. // -1, 录制失败
  900. #define TUICore_RecordAudioMessageNotifyError_RecordFailed -2003
  901. // -3, 音频数据或者视频数据一直没有到达导致没有开始正式录制
  902. #define TUICore_RecordAudioMessageNotifyError_NoMessageToRecord -2004
  903. // -4, 签名错误(onLocalRecordBegin)
  904. #define TUICore_RecordAudioMessageNotifyError_SignatureError -3001
  905. // -5, 签名过期(onLocalRecordBegin)
  906. #define TUICore_RecordAudioMessageNotifyError_SignatureExpired -3002
  907. // 打开麦克风失败,例如在 Windows 或 Mac 设备,麦克风的配置程序(驱动程序)异常,禁用后重新启用设备,或者重启机器,或者更新配置程序
  908. #define TUICore_RecordAudioMessageNotifyError_MicStartFail -1302
  909. // 麦克风设备未授权,通常在移动设备出现,可能是权限被用户拒绝了
  910. #define TUICore_RecordAudioMessageNotifyError_MicNotAuthorized -1317
  911. // 麦克风设置参数失败
  912. #define TUICore_RecordAudioMessageNotifyError_MicSetParamFail -1318
  913. // 麦克风正在被占用中,例如移动设备正在通话时,打开麦克风会失败
  914. #define TUICore_RecordAudioMessageNotifyError_MicOccupy -1319
  915. #pragma mark - TUICore_TUIGiftExtension
  916. #define TUICore_TUIGiftExtension_GetEnterBtn @"TUICore_TUIGiftExtension_GetEnterBtn"
  917. #define TUICore_TUIGiftExtension_GetLikeBtn @"TUICore_TUIGiftExtension_GetLikeBtn"
  918. #define TUICore_TUIGiftExtension_GetTUIGiftListPanel @"TUICore_TUIGiftExtension_GetTUIGiftListPanel"
  919. #define TUICore_TUIGiftExtension_GetTUIGiftPlayView @"TUICore_TUIGiftExtension_GetTUIGiftPlayView"
  920. #pragma mark - TUICore_TUIGiftService
  921. #define TUICore_TUIGiftService @"TUICore_TUIGiftService"
  922. #define TUICore_TUIGiftService_SendLikeMethod @"TUICore_TUIGiftService_SendLikeMethod"
  923. #pragma mark - TUICore_TUIBarrageExtension
  924. #define TUICore_TUIBarrageExtension_GetEnterBtn @"TUICore_TUIBarrageExtension_GetEnterBtn"
  925. #define TUICore_TUIBarrageExtension_GetTUIBarrageSendView @"TUICore_TUIBarrageExtension_GetTUIBarrageSendView"
  926. #define TUICore_TUIBarrageExtension_TUIBarrageDisplayView @"TUICore_TUIBarrageExtension_GetTUIBarrageDisplayView"
  927. #pragma mark - TUICore_TUIBeautyExtension
  928. #define TUICore_TUIBeautyExtension_BeautyView @"TUICore_TUIBeautyExtension_BeautyView"
  929. #define TUICore_TUIBeautyExtension_Extension @"TUICore_TUIBeautyExtension_Extension"
  930. #define TUICore_TUIBeautyExtension_BeautyView_View @"TUICore_TUIBeautyExtension_BeautyView_View"
  931. #define TUICore_TUIBeautyExtension_Extension_View @"TUICore_TUIBeautyExtension_Extension_View"
  932. #define TUICore_TUIBeautyExtension_BeautyView_BeautyManager @"TUICore_TUIBeautyExtension_BeautyView_BeautyManager"
  933. #define TUICore_TUIBeautyExtension_BeautyView_LicenseUrl @"TUICore_TUIBeautyExtension_BeautyView_LicenseUrl"
  934. #define TUICore_TUIBeautyExtension_BeautyView_LicenseKey @"TUICore_TUIBeautyExtension_BeautyView_LicenseKey"
  935. #define TUICore_TUIBeautyExtension_BeautyView_DataProcessDelegate @"TUICore_TUIBeautyExtension_BeautyView_DataProcessDelegate"
  936. #pragma mark - TUICore_TUIBeautyService
  937. #define TUICore_TUIBeautyService @"TUICore_TUIBeautyService"
  938. #define TUICore_TUIBeautyService_SetLicense @"TUICore_TUIBeautyService_SetLicense"
  939. #define TUICore_TUIBeautyService_ProcessVideoFrame @"TUICore_TUIBeautyService_ProcessVideoFrame"
  940. #define TUICore_TUIBeautyService_ProcessVideoFrame_SRCTextureIdKey @"TUICore_TUIBeautyService_ProcessVideoFrame_SRCTextureIdKey"
  941. #define TUICore_TUIBeautyService_ProcessVideoFrame_SRCFrameWidthKey @"TUICore_TUIBeautyService_ProcessVideoFrame_SRCFrameWidthKey"
  942. #define TUICore_TUIBeautyService_ProcessVideoFrame_SRCFrameHeightKey @"TUICore_TUIBeautyService_ProcessVideoFrame_SRCFrameHeightKey"
  943. #pragma mark - TUICore_TUIAudioEffectViewExtension
  944. #define TUICore_TUIAudioEffectViewExtension_AudioEffectView @"TUICore_TUIAudioEffectViewExtension_AudioEffectView"
  945. #define TUICore_TUIAudioEffectViewExtension_Extension @"TUICore_TUIAudioEffectViewExtension_Extension"
  946. #define TUICore_TUIAudioEffectViewExtension_AudioEffectView_View @"TUICore_TUIAudioEffectViewExtension_AudioEffectView_View"
  947. #define TUICore_TUIAudioEffectViewExtension_Extension_View @"TUICore_TUIAudioEffectViewExtension_Extension_View"
  948. #define TUICore_TUIAudioEffectViewExtension_AudioEffectView_AudioEffectManager @"TUICore_TUIAudioEffectViewExtension_AudioEffectView_AudioEffectManager"
  949. #pragma mark - TUICore_NetworkConnection_EVENT
  950. #define TUICore_NetworkConnection_EVENT_CONNECTION_STATE_CHANGED @"eventConnectionStateChanged"
  951. #define TUICore_NetworkConnection_EVENT_SUB_KEY_CONNECTING @"eventSubKeyConnecting"
  952. #define TUICore_NetworkConnection_EVENT_SUB_KEY_CONNECT_SUCCESS @"eventSubKeyConnectSuccess"
  953. #define TUICore_NetworkConnection_EVENT_SUB_KEY_CONNECT_FAILED @"eventSubKeyConnectFailed"
  954. #pragma mark - TUICore_TUIRoomImAccessService
  955. #define TUICore_TUIRoomImAccessService @"TUICore_TUIRoomImAccessService"
  956. #define TUICore_TUIRoomImAccessService_EnableFloatWindowMethod @"TUICore_TUIRoomImAccessService_EnableFloatWindowMethod"
  957. #define TUICore_TUIRoomImAccessService_EnableFloatWindowMethod_EnableFloatWindow @"TUICore_TUIRoomImAccessService_EnableFloatWindowMethod_EnableFloatWindow"
  958. #pragma mark - TUICore_TUIRoomImAccessFactory
  959. #define TUICore_TUIRoomImAccessFactory @"TUICore_TUIRoomImAccessFactory"
  960. #define TUICore_TUIRoomImAccessFactory_GetRoomMessageViewMethod @"TUICore_TUIRoomImAccessFactory_GetRoomMessageViewMethod"
  961. #define TUICore_TUIRoomImAccessFactory_GetRoomMessageViewMethod_Message @"TUICore_TUIRoomImAccessFactory_GetRoomMessageViewMethod_Message"
  962. /////////////////////////////////////////////////////////////////////////////////
  963. //
  964. // TUIOfflinePush
  965. //
  966. /////////////////////////////////////////////////////////////////////////////////
  967. /**
  968. * 设置 VoIP 的证书 ID
  969. * Set certificate IDs for VoIP
  970. */
  971. #define TUIOfflinePushCertificateIDForVoIP(value) \
  972. -(int)push_certificateIDForVoIP { \
  973. return value; \
  974. }
  975. /**
  976. * 设置 APNs 的证书 ID
  977. * Set certificate IDs for APNs
  978. */
  979. #define TUIOfflinePushCertificateIDForAPNS(value) \
  980. -(int)push_certificateIDForAPNS { \
  981. return value; \
  982. }
  983. /**
  984. * 设置 TPNS 的配置信息
  985. * Set TPNS configuration information
  986. */
  987. #define TUIOfflinePushConfigForTPNS(access_id, access_key, tpn_domain) \
  988. -(void)push_accessID : (int *)accessID accessKey : (NSString **)accessKey domain : (NSString **)domain { \
  989. *accessID = access_id; \
  990. *accessKey = access_key; \
  991. *domain = tpn_domain; \
  992. }
  993. #endif /* THeader_h */
  994. #pragma mark - TUICore_TUIDebugService
  995. #define TUICore_TUIDebugService @"TUICore_TUIDebugService"
  996. #define TUICore_TUIDebugService_ShowDebugView @"TUICore_TUIDebugService_ShowDebugView"
  997. #define TUICore_TUIDebugService_PrepareSetting @"TUICore_TUIDebugService_PrepareSetting"
  998. #define TUICore_TUIDebugService_PrepareSettingView @"TUICore_TUIDebugService_PrepareSettingView"