TUIDefine.h 79 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309
  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 "NSString+TUIUtil.h"
  17. @import ImSDK_Plus;
  18. #define tui_weakify(object) \
  19. autoreleasepool {} \
  20. __weak typeof(object) weak##object = object;
  21. #define tui_strongify(object) \
  22. autoreleasepool {} \
  23. __strong typeof(weak##object) object = weak##object;
  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. // Supported in 7.6 and later
  44. #define BussinessID_CustomerService @"customerServicePlugin"
  45. #define BussinessID_Src_CustomerService @"src"
  46. #define BussinessID_Src_CustomerService_Request @"7"
  47. #define BussinessID_Src_CustomerService_Evaluation @"9"
  48. #define BussinessID_Src_CustomerService_EvaluationSelected @"10"
  49. #define BussinessID_Src_CustomerService_Typing @"12"
  50. #define BussinessID_Src_CustomerService_Branch @"15"
  51. #define BussinessID_Src_CustomerService_End @"19"
  52. #define BussinessID_Src_CustomerService_Timeout @"20"
  53. #define BussinessID_Src_CustomerService_Collection @"21"
  54. #define BussinessID_Src_CustomerService_Card @"22"
  55. #define BussinessID_Src_CustomerService_EvaluationRule @"23"
  56. #define BussinessID_Src_CustomerService_EvaluationTrigger @"24"
  57. #define BussinessID_Src_CustomerService_Bot_Welcome_Clarify @"29" // Supported in 8.1 and later
  58. #define BussinessID_Src_CustomerService_Bot_Rich_Text @"30" // Supported in 8.1 and later
  59. #define BussinessID_Src_CustomerService_Bot_Stream_Text @"31" // Supported in 8.1 and later
  60. #define GetCustomerServiceBussinessID(src) [NSString stringWithFormat:@"%@%@",BussinessID_CustomerService, src]
  61. /**
  62. * The business version of "Group-creating custom message"
  63. */
  64. #define GroupCreate_Version 4
  65. /**
  66. * The business version of "custom cell" - click to jump to the official website
  67. */
  68. #define TextLink_Version 4
  69. /**
  70. *
  71. * The version of the protocol for the message reply
  72. * "Message Reply Protocol" version number in "Message Custom Field"
  73. */
  74. #define kMessageReplyVersion 1
  75. /**
  76. *
  77. * The version of the protocol for the message reply
  78. * "Message Reply Protocol" version number in "Draft Field"
  79. */
  80. #define kDraftMessageReplyVersion 1
  81. /////////////////////////////////////////////////////////////////////////////////
  82. //
  83. // The version number of the push service
  84. //
  85. /////////////////////////////////////////////////////////////////////////////////
  86. /**
  87. * The version number of the push service
  88. */
  89. #define APNs_Version 1
  90. /**
  91. * General message push
  92. */
  93. #define APNs_Business_NormalMsg 1
  94. /**
  95. * Pushing of audio and video call
  96. */
  97. #define APNs_Business_Call 2
  98. /////////////////////////////////////////////////////////////////////////////////
  99. //
  100. // Device & Platform
  101. //
  102. /////////////////////////////////////////////////////////////////////////////////
  103. #define Screen_Width [UIScreen mainScreen].bounds.size.width
  104. #define Screen_Height [UIScreen mainScreen].bounds.size.height
  105. #define System_Version [[UIDevice currentDevice] systemVersion]
  106. #define Is_Iphone (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
  107. #define Is_IPhoneX (Screen_Width >= 375.0f && Screen_Height >= 812.0f && Is_Iphone)
  108. #define StatusBar_Height (Is_IPhoneX ? (44.0) : (20.0))
  109. #define TabBar_Height (Is_IPhoneX ? (49.0 + 34.0) : (49.0))
  110. #define NavBar_Height (44)
  111. #define SearchBar_Height (55)
  112. #define Bottom_SafeHeight (Is_IPhoneX ? (34.0) : (0))
  113. #define RGBA(r, g, b, a) [UIColor colorWithRed:(r) / 255.0f green:(g) / 255.0f blue:(b) / 255.0f alpha:a]
  114. #define RGB(r, g, b) [UIColor colorWithRed:(r) / 255.0f green:(g) / 255.0f blue:(b) / 255.0f alpha:1.f]
  115. #define kScale390(x) (x * (UIScreen.mainScreen.bounds.size.width / 390.0))
  116. #define kScale375(x) (x * (UIScreen.mainScreen.bounds.size.width / 375.0))
  117. /////////////////////////////////////////////////////////////////////////////////
  118. //
  119. // Bundle
  120. //
  121. /////////////////////////////////////////////////////////////////////////////////
  122. #define TUIDemoBundle @"TUIDemo"
  123. #define TUICoreBundle @"TUICore"
  124. #define TUIChatBundle @"TUIChat"
  125. #define TUIChatFaceBundle @"TUIChatFace"
  126. #define TUIConversationBundle @"TUIConversation"
  127. #define TUIConversationGroupBundle @"TUIConversationGroup"
  128. #define TUIConversationMarkBundle @"TUIConversationMark"
  129. #define TUIContactBundle @"TUIContact"
  130. #define TUISearchBundle @"TUISearch"
  131. #define TUIPollBundle @"TUIPoll"
  132. #define TUIGroupNoteBundle @"TUIGroupNote"
  133. #define TIMCommonBundle @"TIMCommon"
  134. #define TUITranslationBundle @"TUITranslation"
  135. #define TUIVoiceToTextBundle @"TUIVoiceToText"
  136. #define TUICustomerServicePluginBundle @"TUICustomerServicePlugin"
  137. #define TUIMultimediaPluginBundle @"TUIMultimedia"
  138. #define TUIKitLocalizableBundle @"TUIKitLocalizable"
  139. #define TUICoreLocalizableBundle TUIKitLocalizableBundle
  140. #define TUIChatLocalizableBundle @"TUIChatLocalizable"
  141. #define TUIConversationLocalizableBundle @"TUIConversationLocalizable"
  142. #define TUIContactLocalizableBundle @"TUIContactLocalizable"
  143. #define TUISearchLocalizableBundle @"TUISearchLocalizable"
  144. #define TIMCommonLocalizableBundle @"TIMCommonLocalizable"
  145. #define TUIMultimediaPluginLocalizableBundle @"TUIMultimediaPluginLocalizable"
  146. #define TUIDemoBundle_Key_Class @"TUIKit"
  147. #define TUICoreBundle_Key_Class @"TUICore"
  148. #define TUIChatBundle_Key_Class @"TUIChatService"
  149. #define TUICallKitBundle_Key_Class @"TUICallingService"
  150. #define TUIChatFaceBundle_Key_Class @"TUIChatService"
  151. #define TUIConversationBundle_Key_Class @"TUIConversationService"
  152. #define TUIConversationGroupBundle_Key_Class @"TUIConversationGroupService"
  153. #define TUIConversationMarkBundle_Key_Class @"TUIConversationMarkService"
  154. #define TUIContactBundle_Key_Class @"TUIContactService"
  155. #define TUISearchBundle_Key_Class @"TUISearchService"
  156. #define TUIPollBundle_Key_Class @"TUIPollService"
  157. #define TUIGroupNoteBundle_Key_Class @"TUIGroupNoteService"
  158. #define TIMCommonBundle_Key_Class @"TIMConfig"
  159. #define TUITranslationBundle_Key_Class @"TUITranslationService"
  160. #define TUIVoiceToTextBundle_Key_Class @"TUIVoiceToTextService"
  161. #define TUIKitLocalizableBundle_Key_Class @"TUICore"
  162. #define TUIChatLocalizableBundle_Key_Class @"TUIChatService"
  163. #define TIMCommonLocalizableBundle_Key_Class @"TIMConfig"
  164. #define TUICustomerServicePluginBundle_Key_Class @"TUICustomerServicePluginService"
  165. #define TUIMultimediaPluginBundle_Key_Class @"TUIMultimediaService"
  166. static inline NSString *getTUIFrameWorkName(NSString *bundleKeyClass) {
  167. if ([bundleKeyClass isEqualToString:TUICoreBundle_Key_Class] || [bundleKeyClass isEqualToString:TUIKitLocalizableBundle_Key_Class]) {
  168. return @"TUICore";
  169. }
  170. if ([bundleKeyClass isEqualToString:TUIChatBundle_Key_Class] || [bundleKeyClass isEqualToString:TUIChatFaceBundle_Key_Class] ||
  171. [bundleKeyClass isEqualToString:TUIChatLocalizableBundle_Key_Class]) {
  172. return @"TUIChat";
  173. }
  174. if ([bundleKeyClass isEqualToString:TUIConversationBundle_Key_Class]) {
  175. return @"TUIConversation";
  176. }
  177. if ([bundleKeyClass isEqualToString:TUIConversationGroupBundle_Key_Class]) {
  178. return @"TUIConversationGroupPlugin";
  179. }
  180. if ([bundleKeyClass isEqualToString:TUIConversationMarkBundle_Key_Class]) {
  181. return @"TUIConversationMarkPlugin";
  182. }
  183. if ([bundleKeyClass isEqualToString:TUIContactBundle_Key_Class]) {
  184. return @"TUIContact";
  185. }
  186. if ([bundleKeyClass isEqualToString:TUISearchBundle_Key_Class]) {
  187. return @"TUISearch";
  188. }
  189. if ([bundleKeyClass isEqualToString:TUIPollBundle_Key_Class]) {
  190. return @"TUIPullPlugin";
  191. }
  192. if ([bundleKeyClass isEqualToString:TUIGroupNoteBundle_Key_Class]) {
  193. return @"TUIGroupNotePlugin";
  194. }
  195. if ([bundleKeyClass isEqualToString:TIMCommonBundle_Key_Class]) {
  196. return @"TIMCommon";
  197. }
  198. if ([bundleKeyClass isEqualToString:TUITranslationBundle_Key_Class]) {
  199. return @"TUITranslationPlugin";
  200. }
  201. if ([bundleKeyClass isEqualToString:TUIVoiceToTextBundle_Key_Class]) {
  202. return @"TUIVoiceToTextPlugin";
  203. }
  204. if ([bundleKeyClass isEqualToString:TUICustomerServicePluginBundle_Key_Class]) {
  205. return @"TUICustomerServicePlugin";
  206. }
  207. if ([bundleKeyClass isEqualToString:TUIMultimediaPluginBundle_Key_Class]) {
  208. return @"TUIMultimediaPlugin";
  209. }
  210. return @"";
  211. }
  212. static inline NSString *getTUIGetBundlePath(NSString *bundleName, NSString *bundleKeyClass) {
  213. static NSMutableDictionary *bundlePathCache = nil;
  214. if (bundlePathCache == nil) {
  215. bundlePathCache = [NSMutableDictionary dictionary];
  216. }
  217. NSString *bundlePathKey = [NSString stringWithFormat:@"%@_%@", bundleName, bundleKeyClass];
  218. NSString *bundlePath = [bundlePathCache objectForKey:bundlePathKey];
  219. if (bundlePath == nil) {
  220. bundlePath = [[NSBundle mainBundle] pathForResource:bundleName ofType:@"bundle"];
  221. }
  222. if (bundlePath.length == 0) {
  223. bundlePath = [[NSBundle bundleForClass:NSClassFromString(bundleKeyClass)] pathForResource:bundleName ofType:@"bundle"];
  224. }
  225. if (bundlePath.length == 0) {
  226. bundlePath = [NSBundle mainBundle].bundlePath;
  227. bundlePath = [bundlePath stringByAppendingPathComponent:@"Frameworks"];
  228. bundlePath = [bundlePath stringByAppendingPathComponent:getTUIFrameWorkName(bundleKeyClass)];
  229. bundlePath = [bundlePath stringByAppendingPathExtension:@"framework"];
  230. bundlePath = [bundlePath stringByAppendingPathComponent:bundleName];
  231. bundlePath = [bundlePath stringByAppendingPathExtension:@"bundle"];
  232. }
  233. if (bundlePath && bundlePathKey) {
  234. [bundlePathCache setObject:bundlePath forKey:bundlePathKey];
  235. }
  236. return bundlePath;
  237. }
  238. #define TUIBundlePath(bundleName, bundleKeyClass) getTUIGetBundlePath(bundleName, bundleKeyClass)
  239. #define TUIDemoThemePath TUIBundlePath(@"TUIDemoTheme", TUIDemoBundle_Key_Class)
  240. #define TUICoreThemePath TUIBundlePath(@"TUICoreTheme", TUICoreBundle_Key_Class)
  241. #define TUIChatThemePath TUIBundlePath(@"TUIChatTheme", TUIChatBundle_Key_Class)
  242. #define TUIConversationThemePath TUIBundlePath(@"TUIConversationTheme", TUIConversationBundle_Key_Class)
  243. #define TUIConversationGroupTheme TUIBundlePath(@"TUIConversationGroupTheme", TUIConversationGroupBundle_Key_Class)
  244. #define TUIContactThemePath TUIBundlePath(@"TUIContactTheme", TUIContactBundle_Key_Class)
  245. #define TUISearchThemePath TUIBundlePath(@"TUISearchTheme", TUISearchBundle_Key_Class)
  246. #define TUIPollThemePath TUIBundlePath(@"TUIPollTheme", TUIPollBundle_Key_Class)
  247. #define TUIGroupNoteThemePath TUIBundlePath(@"TUIGroupNoteTheme", TUIGroupNoteBundle_Key_Class)
  248. #define TIMCommonThemePath TUIBundlePath(@"TIMCommonTheme", TIMCommonBundle_Key_Class)
  249. #define TUITranslationThemePath TUIBundlePath(@"TUITranslationTheme", TUITranslationBundle_Key_Class)
  250. #define TUIVoiceToTextThemePath TUIBundlePath(@"TUIVoiceToTextTheme", TUIVoiceToTextBundle_Key_Class)
  251. #define TUICallKitThemePath TUIBundlePath(@"TUICallKitTheme", TUICallKitBundle_Key_Class)
  252. #define TUICustomerServicePluginThemePath TUIBundlePath(@"TUICustomerServicePluginTheme",TUICustomerServicePluginBundle_Key_Class)
  253. #define TUIMultimediaPluginThemePath TUIBundlePath(@"TUIMultimediaTheme",TUIMultimediaPluginBundle_Key_Class)
  254. static inline NSBundle *getTUIGetLocalizable(NSString *bundleName) {
  255. if ([bundleName isEqualToString:TUIChatLocalizableBundle] || [bundleName isEqualToString:TUIChatFaceBundle]) {
  256. return [NSBundle bundleWithPath:TUIBundlePath(bundleName, TUIChatLocalizableBundle_Key_Class)];
  257. } else if ([bundleName isEqualToString:TIMCommonLocalizableBundle]) {
  258. return [NSBundle bundleWithPath:TUIBundlePath(bundleName, TIMCommonLocalizableBundle_Key_Class)];
  259. }
  260. else {
  261. return [NSBundle bundleWithPath:TUIBundlePath(bundleName, TUIKitLocalizableBundle_Key_Class)];
  262. }
  263. }
  264. #define TUIKitLocalizable(bundleName) getTUIGetLocalizable(bundleName)
  265. #define TUIDemoImagePath(imageName) [TUIBundlePath(TUIDemoBundle, TUIDemoBundle_Key_Class) stringByAppendingPathComponent:imageName]
  266. #define TUICoreImagePath(imageName) [TUIBundlePath(TUICoreBundle, TUICoreBundle_Key_Class) stringByAppendingPathComponent:imageName]
  267. #define TUIChatImagePath(imageName) [TUIBundlePath(TUIChatBundle, TUIChatBundle_Key_Class) stringByAppendingPathComponent:imageName]
  268. #define TUIChatFaceImagePath(imageName) [TUIBundlePath(TUIChatFaceBundle, TUIChatFaceBundle_Key_Class) stringByAppendingPathComponent:imageName]
  269. #define TUIConversationImagePath(imageName) [TUIBundlePath(TUIConversationBundle, TUIConversationBundle_Key_Class) stringByAppendingPathComponent:imageName]
  270. #define TUIConversationGroupImagePath(imageName) \
  271. [TUIBundlePath(TUIConversationGroupBundle, TUIConversationGroupBundle_Key_Class) stringByAppendingPathComponent:imageName]
  272. #define TUIConversationMarkImagePath(imageName) \
  273. [TUIBundlePath(TUIConversationMarkBundle, TUIConversationMarkBundle_Key_Class) stringByAppendingPathComponent:imageName]
  274. #define TUIContactImagePath(imageName) [TUIBundlePath(TUIContactBundle, TUIContactBundle_Key_Class) stringByAppendingPathComponent:imageName]
  275. #define TUISearchImagePath(imageName) [TUIBundlePath(TUISearchBundle, TUISearchBundle_Key_Class) stringByAppendingPathComponent:imageName]
  276. #define TUIPollImagePath(imageName) [TUIBundlePath(TUIPollBundle, TUIPollBundle_Key_Class) stringByAppendingPathComponent:imageName]
  277. #define TUIGroupNoteImagePath(imageName) [TUIBundlePath(TUIGroupNoteBundle, TUIGroupNoteBundle_Key_Class) stringByAppendingPathComponent:imageName]
  278. #define TIMCommonImagePath(imageName) [TUIBundlePath(TIMCommonBundle, TIMCommonBundle_Key_Class) stringByAppendingPathComponent:imageName]
  279. #define TUITranslationImagePath(imageName) [TUIBundlePath(TUITranslationBundle, TUITranslationBundle_Key_Class) stringByAppendingPathComponent:imageName]
  280. #define TUIVoiceToTextImagePath(imageName) [TUIBundlePath(TUIVoiceToTextBundle, TUIVoiceToTextBundle_Key_Class) stringByAppendingPathComponent:imageName]
  281. #define TUICustomerServicePluginImagePath(imageName) \
  282. [TUIBundlePath(TUICustomerServicePluginBundle,TUICustomerServicePluginBundle_Key_Class) stringByAppendingPathComponent:imageName]
  283. #define TUIMultimediaPluginImagePath(imageName) \
  284. [TUIBundlePath(TUIMultimediaPluginBundle,TUIMultimediaPluginBundle_Key_Class) stringByAppendingPathComponent:imageName]
  285. //-----Minimalist-------
  286. #define TUIDemoBundle_Minimalist @"TUIDemo_Minimalist"
  287. #define TUICoreBundle_Minimalist @"TUICore_Minimalist"
  288. #define TUIChatBundle_Minimalist @"TUIChat_Minimalist"
  289. #define TUIChatFaceBundle_Minimalist @"TUIChatFace_Minimalist"
  290. #define TUIConversationBundle_Minimalist @"TUIConversation_Minimalist"
  291. #define TUIContactBundle_Minimalist @"TUIContact_Minimalist"
  292. #define TUISearchBundle_Minimalist @"TUISearch_Minimalist"
  293. #define TUIPollBundle_Minimalist @"TUIPoll_Minimalist"
  294. #define TUIGroupNoteBundle_Minimalist @"TUIGroupNote_Minimalist"
  295. #define TUITranslationBundle_Minimalist @"TUITranslation_Minimalist"
  296. #define TUIVoiceToTextBundle_Minimalist @"TUIVoiceToText_Minimalist"
  297. #define TUIDemoImagePath_Minimalist(imageName) [TUIBundlePath(TUIDemoBundle_Minimalist, TUIDemoBundle_Key_Class) stringByAppendingPathComponent:imageName]
  298. #define TUICoreImagePath_Minimalist(imageName) [TUIBundlePath(TUICoreBundle_Minimalist, TUICoreBundle_Key_Class) stringByAppendingPathComponent:imageName]
  299. #define TUIChatImagePath_Minimalist(imageName) [TUIBundlePath(TUIChatBundle_Minimalist, TUIChatBundle_Key_Class) stringByAppendingPathComponent:imageName]
  300. #define TUIChatFaceImagePath_Minimalist(imageName) \
  301. [TUIBundlePath(TUIChatFaceBundle_Minimalist, TUIChatFaceBundle_Key_Class) stringByAppendingPathComponent:imageName]
  302. #define TUIConversationImagePath_Minimalist(imageName) \
  303. [TUIBundlePath(TUIConversationBundle_Minimalist, TUIConversationBundle_Key_Class) stringByAppendingPathComponent:imageName]
  304. #define TUIContactImagePath_Minimalist(imageName) \
  305. [TUIBundlePath(TUIContactBundle_Minimalist, TUIContactBundle_Key_Class) stringByAppendingPathComponent:imageName]
  306. #define TUISearchImagePath_Minimalist(imageName) [TUIBundlePath(TUISearchBundle_Minimalist, TUISearchBundle_Key_Class) stringByAppendingPathComponent:imageName]
  307. #define TUIPollImagePath_Minimalist(imageName) [TUIBundlePath(TUIPollBundle_Minimalist, TUIPollBundle_Key_Class) stringByAppendingPathComponent:imageName]
  308. #define TUIGroupNoteImagePath_Minimalist(imageName) \
  309. [TUIBundlePath(TUIGroupNoteBundle_Minimalist, TUIGroupNoteBundle_Key_Class) stringByAppendingPathComponent:imageName]
  310. #define TUITranslationImagePath_Minimalist(imageName) \
  311. [TUIBundlePath(TUITranslationBundle_Minimalist, TUITranslationBundle_Key_Class) stringByAppendingPathComponent:imageName]
  312. #define TUIVoiceToTextImagePath_Minimalist(imageName) \
  313. [TUIBundlePath(TUIVoiceToTextBundle_Minimalist, TUIVoiceToTextBundle_Key_Class) stringByAppendingPathComponent:imageName]
  314. //-----
  315. /////////////////////////////////////////////////////////////////////////////////
  316. //
  317. // File Cache
  318. //
  319. /////////////////////////////////////////////////////////////////////////////////
  320. #define TUIKit_DB_Path [NSHomeDirectory() stringByAppendingString:@"/Documents/com_tencent_imsdk_data/"]
  321. #define TUIKit_Image_Path [NSHomeDirectory() stringByAppendingString:@"/Documents/com_tencent_imsdk_data/image/"]
  322. #define TUIKit_Video_Path [NSHomeDirectory() stringByAppendingString:@"/Documents/com_tencent_imsdk_data/video/"]
  323. #define TUIKit_Voice_Path [NSHomeDirectory() stringByAppendingString:@"/Documents/com_tencent_imsdk_data/voice/"]
  324. #define TUIKit_File_Path [NSHomeDirectory() stringByAppendingString:@"/Documents/com_tencent_imsdk_data/file/"]
  325. /////////////////////////////////////////////////////////////////////////////////
  326. //
  327. // Custom view
  328. //
  329. /////////////////////////////////////////////////////////////////////////////////
  330. // input
  331. #define TUIInputMoreCellKey_VideoCall @"TUIInputMoreCellKey_VideoCall"
  332. #define TUIInputMoreCellKey_AudioCall @"TUIInputMoreCellKey_AudioCall"
  333. #define TUIInputMoreCellKey_Link @"TUIInputMoreCellKey_Link"
  334. #define TUIInputMoreCellKey_Poll @"TUIInputMoreCellKey_Poll"
  335. #define TUIInputMoreCellKey_GroupNote @"TUIInputMoreCellKey_GroupNote"
  336. // cell
  337. #define TMessageCell_Name @"TMessageCell_Name"
  338. #define TMessageCell_Data_Name @"TMessageCell_Data_Name"
  339. #define TMessageCell_Head_Width 45
  340. #define TMessageCell_Head_Height 45
  341. #define TMessageCell_Head_Size CGSizeMake(45, 45)
  342. #define TMessageCell_Padding 8
  343. #define TMessageCell_Margin 8
  344. #define TMessageCell_Indicator_Size CGSizeMake(20, 20)
  345. // text cell
  346. #define TTextMessageCell_ReuseId @"TTextMessageCell"
  347. #define TTextMessageCell_Height_Min (TMessageCell_Head_Size.height + 2 * TMessageCell_Padding)
  348. #define TTextMessageCell_Text_PADDING (160)
  349. #define TTextMessageCell_Text_Width_Max (Screen_Width - TTextMessageCell_Text_PADDING)
  350. #define TTextMessageCell_Margin 12
  351. // system cell
  352. #define TSystemMessageCell_ReuseId @"TSystemMessageCell"
  353. #define TSystemMessageCell_Text_Width_Max (Screen_Width * 0.5)
  354. #define TSystemMessageCell_Margin 5
  355. // joinGroup cell
  356. #define TJoinGroupMessageCell_ReuseId @"TJoinGroupMessageCell"
  357. #define TJoinGroupMessageCell_Text_Width_Max (Screen_Width * 0.5)
  358. #define TJoinGroupMessageCell_Margin 5
  359. // image cell
  360. #define TImageMessageCell_ReuseId @"TImageMessageCell"
  361. #define TImageMessageCell_Image_Width_Max (Screen_Width * 0.4)
  362. #define TImageMessageCell_Image_Height_Max TImageMessageCell_Image_Width_Max
  363. #define TImageMessageCell_Margin_2 8
  364. #define TImageMessageCell_Margin_1 16
  365. #define TImageMessageCell_Progress_Color RGBA(0, 0, 0, 0.5)
  366. // face cell
  367. #define TFaceMessageCell_ReuseId @"TFaceMessageCell"
  368. #define TFaceMessageCell_Image_Width_Max (Screen_Width * 0.25)
  369. #define TFaceMessageCell_Image_Height_Max TFaceMessageCell_Image_Width_Max
  370. #define TFaceMessageCell_Margin 16
  371. // file cell
  372. #define TFileMessageCell_ReuseId @"TFileMessageCell"
  373. #define TFileMessageCell_Container_Size CGSizeMake((474 * 0.5), (124 * 0.5))
  374. #define TFileMessageCell_Margin 10
  375. #define TFileMessageCell_Progress_Color RGBA(0, 0, 0, 0.5)
  376. // video cell
  377. #define TVideoMessageCell_ReuseId @"TVideoMessageCell"
  378. #define TVideoMessageCell_Image_Width_Max (Screen_Width * 0.4)
  379. #define TVideoMessageCell_Image_Height_Max TVideoMessageCell_Image_Width_Max
  380. #define TVideoMessageCell_Margin_3 4
  381. #define TVideoMessageCell_Margin_2 8
  382. #define TVideoMessageCell_Margin_1 16
  383. #define TVideoMessageCell_Play_Size CGSizeMake(35, 35)
  384. #define TVideoMessageCell_Progress_Color RGBA(0, 0, 0, 0.5)
  385. // voice cell
  386. #define TVoiceMessageCell_ReuseId @"TVoiceMessaageCell"
  387. #define TVoiceMessageCell_Max_Duration 60.0
  388. #define TVoiceMessageCell_Height TMessageCell_Head_Size.height
  389. #define TVoiceMessageCell_Margin 12
  390. #define TVoiceMessageCell_Back_Width_Max (Screen_Width * 0.4)
  391. #define TVoiceMessageCell_Back_Width_Min 60
  392. #define TVoiceMessageCell_Duration_Size CGSizeMake(33, 33)
  393. // group live cell
  394. #define TGroupLiveMessageCell_ReuseId @"TGroupLiveMessageCell"
  395. // reply message cell
  396. #define TReplyMessageCell_ReuseId @"TUIReplyMessageCell"
  397. #define TUIReferenceMessageCell_ReuseId @"TUIReferenceMessageCell"
  398. #define TReplyQuoteView_Max_Width 175
  399. #define TReplyQuoteView_Margin_Width 35
  400. // merge message cell
  401. #define TMergeMessageCell_ReuserId @"TMergeMessageCell"
  402. #define TMergeMessageCell_Width_Max 200
  403. #define TMergeMessageCell_Height_Max 100
  404. // rich text cell
  405. #define TRichTextMessageCell_ReuserId @"TRichTextMessageCell"
  406. #define TRichTextMessageCell_Width_Max (Screen_Width * 0.7)
  407. #define TRichTextMessageCell_Height_Default (100)
  408. // text view
  409. #define TTextView_Height (52)
  410. #define TTextView_Button_Size CGSizeMake(30, 30)
  411. #define TTextView_Margin 6
  412. #define TTextView_TextView_Height_Min (TTextView_Height - 2 * TTextView_Margin)
  413. #define TTextView_TextView_Height_Max 80
  414. // face view
  415. #define TFaceView_Height 287
  416. #define TFaceView_Margin 10
  417. #define TFaceView_Page_Padding 20
  418. #define TFaceView_Page_Height 30
  419. // menu view
  420. #define TMenuView_Send_Color RGBA(87, 190, 105, 1.0)
  421. #define TMenuView_Margin 6
  422. #define TMenuView_Menu_Height 59
  423. // more view
  424. #define TMoreView_Column_Count 4
  425. #define TMoreView_Section_Padding 24
  426. #define TMoreView_Margin 20
  427. #define TMoreView_Page_Height 30
  428. // menu item cell
  429. #define TMenuCell_ReuseId @"TMenuCell"
  430. #define TMenuCell_Margin 6
  431. #define TMenuCell_Line_ReuseId @"TMenuLineCell"
  432. #define TMenuCell_Background_Color RGBA(246, 246, 246, 1.0)
  433. #define TMenuCell_Background_Color_Dark RGBA(30, 30, 30, 1.0)
  434. #define TMenuCell_Selected_Background_Color RGBA(255, 255, 255, 1.0)
  435. #define TMenuCell_Selected_Background_Color_Dark RGBA(41, 41, 41, 1.0)
  436. // more item cell
  437. #define TMoreCell_ReuseId @"TMoreCell"
  438. #define TMoreCell_Margin 5
  439. #define TMoreCell_Image_Size CGSizeMake(65, 65)
  440. #define TMoreCell_Title_Height 20
  441. // face item cell
  442. #define TFaceCell_ReuseId @"TFaceCell"
  443. // group member cell
  444. #define TGroupMemberCell_ReuseId @"TGroupMemberCell"
  445. #define TGroupMemberCell_Margin 5
  446. #define TGroupMemberCell_Head_Size CGSizeMake(50, 50)
  447. #define TGroupMemberCell_Name_Height 20
  448. // conversation cell
  449. #define TConversationCell_Height 72
  450. #define TConversationCell_Margin 12
  451. #define TConversationCell_Margin_Text 14
  452. #define TConversationCell_Margin_Disturb 16
  453. #define TConversationCell_Margin_Disturb_Dot 10
  454. #define TConversationCell_Height_LiteMode 62
  455. // AudioCall cell
  456. #define TUIAudioCallUserCell_ReuseId @"TUIAudioCallUserCell"
  457. // VideoCall cell
  458. #define TUIVideoCallUserCell_ReuseId @"TUIVideoCallUserCell"
  459. // pop view
  460. #define TUIPopView_Arrow_Size CGSizeMake(15, 10)
  461. #define TUIPopView_Background_Color RGBA(188, 188, 188, 0.5)
  462. #define TUIPopView_Background_Color_Dark RGBA(76, 76, 76, 0.5)
  463. // pop cell
  464. #define TUIPopCell_ReuseId @"TUIPopCell"
  465. #define TUIPopCell_Height 45
  466. #define TUIPopCell_Margin 18
  467. #define TUIPopCell_Padding 12
  468. // unRead
  469. #define TUnReadView_Margin_TB 2
  470. #define TUnReadView_Margin_LR 4
  471. // message controller
  472. #define TMessageController_Header_Height 40
  473. // members controller
  474. #define TGroupMembersController_Margin 20
  475. #define TGroupMembersController_Row_Count 5
  476. // add c2c controller
  477. #define TAddC2CController_Margin 10
  478. // add group controller
  479. #define TAddGroupController_Margin 15
  480. // add member controller
  481. #define TAddMemberController_Margin 15
  482. // delete member controller
  483. #define TDeleteMemberController_Margin 15
  484. // add cell
  485. #define TAddCell_ReuseId @"TAddCell"
  486. #define TAddCell_Height 55
  487. #define TAddCell_Margin 10
  488. #define TAddCell_Select_Size CGSizeMake(25, 25)
  489. #define TAddCell_Head_Size CGSizeMake(38, 38)
  490. // modify view
  491. #define TModifyView_Background_Color RGBA(0, 0, 0, 0.5)
  492. #define TModifyView_Background_Color_Dark RGBA(76, 76, 76, 0.5)
  493. #define TModifyView_Confirm_Color RGBA(44, 145, 247, 1.0)
  494. // record
  495. #define Record_Background_Color RGBA(0, 0, 0, 0.6)
  496. #define Record_Background_Size CGSizeMake(Screen_Width * 0.4, Screen_Width * 0.4)
  497. #define Record_Title_Height 30
  498. #define Record_Title_Background_Color RGBA(186, 60, 65, 1.0)
  499. #define Record_Margin 8
  500. // key value cell
  501. #define TKeyValueCell_ReuseId @"TKeyValueCell"
  502. #define TKeyValueCell_Indicator_Size CGSizeMake(15, 15)
  503. #define TKeyValueCell_Margin 10
  504. #define TKeyValueCell_Height 50
  505. // button cell
  506. #define TButtonCell_ReuseId @"TButtonCell"
  507. #define TButtonCell_Height 56
  508. #define TButtonCell_Margin 1
  509. // switch cell
  510. #define TSwitchCell_ReuseId @"TSwitchCell"
  511. #define TSwitchCell_Height 50
  512. #define TSwitchCell_Margin 10
  513. // personal common cell
  514. #define TPersonalCommonCell_Image_Size CGSizeMake(48, 48)
  515. #define TPersonalCommonCell_Margin 20
  516. #define TPersonalCommonCell_Indicator_Size CGSizeMake(15, 15)
  517. // group common cell
  518. #define TGroupCommonCell_ReuseId @"TGroupCommonCell"
  519. #define TGroupCommonCell_Image_Size CGSizeMake(80, 80)
  520. #define TGroupCommonCell_Margin 10
  521. #define TGroupCommonCell_Indicator_Size CGSizeMake(15, 15)
  522. // gropu member cell
  523. #define TGroupMembersCell_ReuseId @"TGroupMembersCell"
  524. #define TGroupMembersCell_Column_Count 5
  525. #define TGroupMembersCell_Row_Count 2
  526. #define TGroupMembersCell_Margin 10
  527. #define TGroupMembersCell_Image_Size CGSizeMake(60, 60)
  528. // navigationbar indicator view
  529. #define TUINaviBarIndicatorView_Margin 5
  530. // controller commom color
  531. #define TController_Background_Color RGBA(255, 255, 255, 1.0)
  532. #define TController_Background_Color_Dark RGBA(25, 25, 25, 1.0)
  533. // title commom color
  534. #define TText_Color [UIColor blackColor]
  535. #define TText_Color_Dark RGB(217, 217, 217)
  536. #define TText_OutMessage_Color_Dark RGB(0, 15, 0)
  537. // cell commom color
  538. #define TCell_Nomal [UIColor whiteColor]
  539. #define TCell_Nomal_Dark RGB(35, 35, 35)
  540. #define TCell_Touched RGB(219, 219, 219)
  541. #define TCell_Touched_Dark RGB(47, 47, 47)
  542. #define TCell_OnTop RGB(247, 247, 247)
  543. #define TCell_OnTop_Dark RGB(47, 47, 47)
  544. // line commom color
  545. #define TLine_Color RGBA(188, 188, 188, 0.6)
  546. #define TLine_Color_Dark RGBA(35, 35, 35, 0.6)
  547. #define TLine_Heigh 0.5
  548. // page commom color
  549. #define TPage_Color RGBA(222, 222, 222, 1.0)
  550. #define TPage_Color_Dark RGBA(55, 55, 55, 1.0)
  551. #define TPage_Current_Color RGBA(125, 125, 125, 1.0)
  552. #define TPage_Current_Color_Dark RGBA(140, 140, 140, 1.0)
  553. // input view commom color
  554. #define TInput_Background_Color RGBA(235, 240, 246, 1.0)
  555. #define TInput_Background_Color_Dark RGBA(30, 30, 30, 1.0)
  556. // rich
  557. #define kDefaultRichCellHeight 50
  558. #define kDefaultRichCellMargin 8
  559. #define kRichCellDescColor [UIColor blackColor]
  560. #define kRichCellValueColor [UIColor grayColor]
  561. #define kRichCellTextFont [UIFont systemFontOfSize:14]
  562. /////////////////////////////////////////////////////////////////////////////////
  563. //
  564. // Notification
  565. //
  566. /////////////////////////////////////////////////////////////////////////////////
  567. /**
  568. * Notification of a change in message state
  569. */
  570. #define TUIKitNotification_onMessageStatusChanged @"TUIKitNotification_onMessageStatusChanged"
  571. /**
  572. * Received error notification that the package is not supported
  573. */
  574. #define TUIKitNotification_onReceivedUnsupportInterfaceError @"TUIKitNotification_onReceivedUnsupportInterfaceError"
  575. /**
  576. * Received error notification that the package is not supported, need contact to experience
  577. */
  578. #define TUIKitNotification_onReceivedValueAddedUnsupportContactNeededError @"TUIKitNotification_onReceivedValueAddedUnsupportContactNeededError"
  579. /**
  580. * Received error notification that the package is not supported, need to purchase
  581. */
  582. #define TUIKitNotification_onReceivedValueAddedUnsupportPurchaseNeededError @"TUIKitNotification_onReceivedValueAddedUnsupportPurchaseNeededError"
  583. /**
  584. * Unread update notifications received when the Conversation list is updated
  585. */
  586. #define TUIKitNotification_onConversationMarkUnreadCountChanged @"TUIKitNotification_onConversationMarkUnreadCountChanged"
  587. #define TUIKitNotification_onConversationMarkUnreadCountChanged_DataProvider @"dataProvider"
  588. #define TUIKitNotification_onConversationMarkUnreadCountChanged_MarkUnreadCount @"markUnreadCount"
  589. #define TUIKitNotification_onConversationMarkUnreadCountChanged_MarkHideUnreadCount @"markHideUnreadCount"
  590. #define TUIKitNotification_onConversationMarkUnreadCountChanged_MarkUnreadMap @"markUnreadMap"
  591. #define TUIKitNotification_onMessageVCBottomMarginChanged @"TUIKitNotification_onMessageVCBottomMarginChanged"
  592. #define TUIKitNotification_onMessageVCBottomMarginChanged_Margin @"bottonMargin"
  593. /////////////////////////////////////////////////////////////////////////////////
  594. //
  595. // TUICore
  596. //
  597. /////////////////////////////////////////////////////////////////////////////////
  598. #pragma mark - TUICore_TUIChat_Service
  599. #define TUICore_TUIChatService @"TUICore_TUIChatService"
  600. #define TUICore_TUIChatService_Minimalist @"TUICore_TUIChatService_Minimalist"
  601. #define TUICore_TUIChatService_GetDisplayStringMethod @"TUICore_TUIChatService_GetDisplayStringMethod"
  602. #define TUICore_TUIChatService_GetDisplayStringMethod_MsgKey @"msg"
  603. #define TUICore_TUIChatService_AsyncGetDisplayStringMethod @"TUICore_TUIChatService_AsyncGetDisplayStringMethod"
  604. #define TUICore_TUIChatService_AsyncGetDisplayStringMethod_MsgListKey @"TUICore_TUIChatService_AsyncGetDisplayStringMethod_MsgListKey"
  605. #define TUICore_TUIChatService_SendMessageMethod @"TUICore_TUIChatService_SendMessageMethod"
  606. #define TUICore_TUIChatService_SendMessageMethod_MsgKey @"TUICore_TUIChatService_SendMessageMethod_MsgKey"
  607. #define TUICore_TUIChatService_SendMessageMethod_PlaceHolderUIMsgKey @"TUICore_TUIChatService_SendMessageMethod_PlaceHolderUIMsgKey"
  608. #define TUICore_TUIChatService_SendMessageMethodWithoutUpdateUI @"TUICore_TUIChatService_SendMessageMethodWithoutUpdateUI"
  609. #define TUICore_TUIChatService_SendMessageMethodWithoutUpdateUI_MsgKey @"TUICore_TUIChatService_SendMessageMethodWithoutUpdateUI_MsgKey"
  610. #define TUICore_TUIChatService_SetChatExtensionMethod @"TUICore_TUIChatService_SetChatExtensionMethod"
  611. #define TUICore_TUIChatService_SetChatExtensionMethod_EnableVideoCallKey @"TUICore_TUIChatService_SetChatExtensionMethod_EnableVideoCallKey"
  612. #define TUICore_TUIChatService_SetChatExtensionMethod_EnableAudioCallKey @"TUICore_TUIChatService_SetChatExtensionMethod_EnableAudioCallKey"
  613. #define TUICore_TUIChatService_SetChatExtensionMethod_EnableLinkKey @"TUICore_TUIChatService_SetChatExtensionMethod_EnableLinkKey"
  614. #define TUICore_TUIChatService_AppendCustomMessageMethod @"TUICore_TUIChatService_AppendCustomMessageMethod"
  615. #define TUICore_TUIChatService_SetMaxTextSize @"TUICore_TUIChatService_SetMaxTextSize"
  616. #pragma mark - TUICore_TUIChat_Notify
  617. #define TUICore_TUIChatNotify @"TUICore_TUIChatNotify"
  618. #define TUICore_TUIChatNotify_SendMessageSubKey @"TUICore_TUIChatNotify_SendMessageSubKey"
  619. #define TUICore_TUIChatNotify_SendMessageSubKey_Code @"TUICore_TUIChatNotify_SendMessageSubKey_Code"
  620. #define TUICore_TUIChatNotify_SendMessageSubKey_Desc @"TUICore_TUIChatNotify_SendMessageSubKey_Desc"
  621. #define TUICore_TUIChatNotify_SendMessageSubKey_Message @"TUICore_TUIChatNotify_SendMessageSubKey_Message"
  622. #define TUICore_TUIChatNotify_KeyboardWillHideSubKey @"TUICore_TUIChatNotify_KeyboardWillHideSubKey"
  623. #define TUICore_TUIChatNotify_ChatVC_ViewDidLoadSubKey @"TUICore_TUIChatNotify_ChatVC_ViewDidLoadSubKey"
  624. #define TUICore_TUIChatNotify_ChatVC_ViewDidLoadSubKey_UserID @"TUICore_TUIChatNotify_ChatVC_ViewDidLoadSubKey_UserID"
  625. // The notification of displaying the message cell data
  626. #define TUICore_TUIChatNotify_MessageDisplayedSubKey @"TUICore_TUIChatNotify_MessageDisplayedSubKey"
  627. #pragma mark - TUICore_TUIChat_Extension
  628. #define TUICore_TUIChatExtension_GetMoreCellInfo_VideoCall @"TUICore_TUIChatExtension_GetMoreCellInfo_VideoCall"
  629. #define TUICore_TUIChatExtension_GetMoreCellInfo_AudioCall @"TUICore_TUIChatExtension_GetMoreCellInfo_AudioCall"
  630. #define TUICore_TUIChatExtension_GetMoreCellInfo_UserID @"TUICore_TUIChatExtension_GetMoreCellInfo_UserID"
  631. #define TUICore_TUIChatExtension_GetMoreCellInfo_GroupID @"TUICore_TUIChatExtension_GetMoreCellInfo_GroupID"
  632. #define TUICore_TUIChatExtension_GetMoreCellInfo_View @"TUICore_TUIChatExtension_GetMoreCellInfo_View"
  633. // Chat interface configuration extension
  634. #define TUICore_TUIChatExtension_GetChatConversationModelParams @"TUICore_TUIChatExtension_GetChatConversationModelParams"
  635. #define TUICore_TUIChatExtension_GetChatConversationModelParams_UserID @"TUICore_TUIChatExtension_GetChatConversationModelParams_UserID"
  636. #define TUICore_TUIChatExtension_GetChatConversationModelParams_MsgNeedReadReceipt @"TUICore_TUIChatExtension_GetChatConversationModelParams_MsgNeedReadReceipt" //bool
  637. #define TUICore_TUIChatExtension_GetChatConversationModelParams_EnableVideoCall @"TUICore_TUIChatExtension_GetChatConversationModelParams_EnableVideoCall" //bool
  638. #define TUICore_TUIChatExtension_GetChatConversationModelParams_EnableAudioCall @"TUICore_TUIChatExtension_GetChatConversationModelParams_EnableAudioCall" //bool
  639. #define TUICore_TUIChatExtension_GetChatConversationModelParams_EnableWelcomeCustomMessage @"TUICore_TUIChatExtension_GetChatConversationModelParams_EnableWelcomeCustomMessage" //bool
  640. // Chat page top area expansion
  641. #define TUICore_TUIChatExtension_ChatViewTopArea_ClassicExtensionID @"TUICore_TUIChatExtension_ChatViewTopArea_ClassicExtensionID"
  642. #define TUICore_TUIChatExtension_ChatViewTopArea_MinimalistExtensionID @"TUICore_TUIChatExtension_ChatViewTopArea_MinimalistExtensionID"
  643. #define TUICore_TUIChatExtension_ChatViewTopArea_ChangedNotification @"TUICore_TUIChatExtension_ChatViewTopArea_ChangedNotification"
  644. #define TUICore_TUIChatExtension_ChatViewTopArea_ViewType @"TUICore_TUIChatExtension_ChatViewTopArea_ViewType"
  645. #define TUICore_TUIChatExtension_ChatViewTopArea_ChatID @"TUICore_TUIChatExtension_ChatViewTopArea_ChatID"
  646. #define TUICore_TUIChatExtension_ChatViewTopArea_IsGroup @"TUICore_TUIChatExtension_ChatViewTopArea_IsGroup"
  647. // UI extension when clicking the avatar in message list
  648. #define TUICore_TUIChatExtension_ClickAvatar_ClassicExtensionID @"TUICore_TUIChatExtension_ClickAvatar_ClassicExtensionID"
  649. #define TUICore_TUIChatExtension_ClickAvatar_MinimalistExtensionID @"TUICore_TUIChatExtension_ClickAvatar_MinimalistExtensionID"
  650. #define TUICore_TUIChatExtension_ClickAvatar_UserID @"TUICore_TUIChatExtension_ClickAvatar_UserID"
  651. #define TUICore_TUIChatExtension_ClickAvatar_GroupID @"TUICore_TUIChatExtension_ClickAvatar_GroupID"
  652. #define TUICore_TUIChatExtension_ClickAvatar_PushVC @"TUICore_TUIChatExtension_ClickAvatar_PushVC"
  653. // UI extension on the right side of navigation bar in chat page
  654. #define TUICore_TUIChatExtension_NavigationMoreItem_ClassicExtensionID @"TUICore_TUIChatExtension_NavigationMoreItem_ClassicExtensionID"
  655. #define TUICore_TUIChatExtension_NavigationMoreItem_MinimalistExtensionID @"TUICore_TUIChatExtension_NavigationMoreItem_MinimalistExtensionID"
  656. #define TUICore_TUIChatExtension_NavigationMoreItem_UserID @"TUICore_TUIChatExtension_NavigationMoreItem_UserID"
  657. #define TUICore_TUIChatExtension_NavigationMoreItem_GroupID @"TUICore_TUIChatExtension_NavigationMoreItem_GroupID"
  658. #define TUICore_TUIChatExtension_NavigationMoreItem_FilterVideoCall @"TUICore_TUIChatExtension_NavigationMoreItem_FilterVideoCall"
  659. #define TUICore_TUIChatExtension_NavigationMoreItem_FilterAudioCall @"TUICore_TUIChatExtension_NavigationMoreItem_FilterAudioCall"
  660. #define TUICore_TUIChatExtension_NavigationMoreItem_ItemSize @"TUICore_TUIChatExtension_NavigationMoreItem_ItemSize"
  661. #define TUICore_TUIChatExtension_NavigationMoreItem_ItemImage @"TUICore_TUIChatExtension_NavigationMoreItem_ItemImage"
  662. #define TUICore_TUIChatExtension_NavigationMoreItem_PushVC @"TUICore_TUIChatExtension_NavigationMoreItem_PushVC"
  663. // UI extension for the input area at the bottom of the chat page
  664. #define TUICore_TUIChatExtension_InputViewMoreItem_ClassicExtensionID @"TUICore_TUIChatExtension_InputViewMoreItem_ClassicExtensionID"
  665. #define TUICore_TUIChatExtension_InputViewMoreItem_MinimalistExtensionID @"TUICore_TUIChatExtension_InputViewMoreItem_MinimalistExtensionID"
  666. #define TUICore_TUIChatExtension_InputViewMoreItem_UserID @"TUICore_TUIChatExtension_InputViewMoreItem_UserID"
  667. #define TUICore_TUIChatExtension_InputViewMoreItem_GroupID @"TUICore_TUIChatExtension_InputViewMoreItem_GroupID"
  668. #define TUICore_TUIChatExtension_InputViewMoreItem_FilterVideoCall @"TUICore_TUIChatExtension_InputViewMoreItem_FilterVideoCall"
  669. #define TUICore_TUIChatExtension_InputViewMoreItem_FilterAudioCall @"TUICore_TUIChatExtension_InputViewMoreItem_FilterAudioCall"
  670. #define TUICore_TUIChatExtension_InputViewMoreItem_FilterRoom @"TUICore_TUIChatExtension_InputViewMoreItem_FilterRoom"
  671. #define TUICore_TUIChatExtension_InputViewMoreItem_FilterPoll @"TUICore_TUIChatExtension_InputViewMoreItem_FilterPoll"
  672. #define TUICore_TUIChatExtension_InputViewMoreItem_FilterGroupNote @"TUICore_TUIChatExtension_InputViewMoreItem_FilterGroupNote"
  673. #define TUICore_TUIChatExtension_InputViewMoreItem_ItemSize @"TUICore_TUIChatExtension_InputViewMoreItem_ItemSize"
  674. #define TUICore_TUIChatExtension_InputViewMoreItem_ItemImage @"TUICore_TUIChatExtension_InputViewMoreItem_ItemImage"
  675. #define TUICore_TUIChatExtension_InputViewMoreItem_ItemTitle @"TUICore_TUIChatExtension_InputViewMoreItem_ItemTitle"
  676. #define TUICore_TUIChatExtension_InputViewMoreItem_PushVC @"TUICore_TUIChatExtension_InputViewMoreItem_PushVC"
  677. #define TUICore_TUIChatExtension_InputViewMoreItem_VC @"TUICore_TUIChatExtension_InputViewMoreItem_VC"
  678. #define TUICore_TUIChatExtension_InputViewMoreItem_ActionVC @"TUICore_TUIChatExtension_InputViewMoreItem_ActionVC"
  679. // Chat page message long press pop-up UI extension.
  680. #define TUICore_TUIChatExtension_ChatPopMenuReactRecentView_ClassicExtensionID @"TUICore_TUIChatExtension_ChatPopMenuReactRecentView_ClassicExtensionID"
  681. #define TUICore_TUIChatExtension_ChatPopMenuReactRecentView_MinimalistExtensionID @"TUICore_TUIChatExtension_ChatPopMenuReactRecentView_MinimalistExtensionID"
  682. #define TUICore_TUIChatExtension_ChatPopMenuReactRecentView_Delegate @"TUICore_TUIChatExtension_ChatPopMenuReactRecentView_Delegate"
  683. #define TUICore_TUIChatExtension_ChatPopMenuReactDetailView_ClassicExtensionID @"TUICore_TUIChatExtension_ChatPopMenuReactDetailView_ClassicExtensionID"
  684. #define TUICore_TUIChatExtension_ChatPopMenuReactDetailView_MinimalistExtensionID @"TUICore_TUIChatExtension_ChatPopMenuReactDetailView_MinimalistExtensionID"
  685. #define TUICore_TUIChatExtension_PopMenuActionItem_ClassicExtensionID @"TUICore_TUIChatExtension_PopMenuActionItem_ClassicExtensionID"
  686. #define TUICore_TUIChatExtension_PopMenuActionItem_MinimalistExtensionID @"TUICore_TUIChatExtension_PopMenuActionItem_MinimalistExtensionID"
  687. #define TUICore_TUIChatExtension_PopMenuActionItem_TargetVC @"TUICore_TUIChatExtension_PopMenuActionItem_TargetVC"
  688. #define TUICore_TUIChatExtension_PopMenuActionItem_ClickCell @"TUICore_TUIChatExtension_PopMenuActionItem_ClickCell"
  689. // Chat message cell container UI extension.
  690. #define TUICore_TUIChatExtension_ChatMessageReactPreview_ClassicExtensionID @"TUICore_TUIChatExtension_ChatMessageReactPreview_ClassicExtensionID"
  691. #define TUICore_TUIChatExtension_ChatMessageReactPreview_MinimalistExtensionID @"TUICore_TUIChatExtension_ChatMessageReactPreview_MinimalistExtensionID"
  692. #define TUICore_TUIChatExtension_ChatMessageReactPreview_Delegate @"TUICore_TUIChatExtension_ChatMessageReactPreview_Delegate"
  693. // Chat message cell bottom container UI extension.
  694. #define TUICore_TUIChatExtension_BottomContainer_ClassicExtensionID @"TUICore_TUIChatExtension_BottomContainer_ClassicExtensionID"
  695. #define TUICore_TUIChatExtension_BottomContainer_MinimalistExtensionID @"TUICore_TUIChatExtension_BottomContainer_MinimalistExtensionID"
  696. #define TUICore_TUIChatExtension_BottomContainer_CellData @"TUICore_TUIChatExtension_BottomContainer_CellData"
  697. #define TUICore_TUIChatExtension_BottomContainer_VC @"TUICore_TUIChatExtension_BottomContainer_VC"
  698. // Chat page UI extension below chatVC
  699. #define TUICore_TUIChatExtension_ChatVCBottomContainer_ClassicExtensionID @"TUICore_TUIChatExtension_ChatVCBottomContainer_ClassicExtensionID"
  700. #define TUICore_TUIChatExtension_ChatVCBottomContainer_VC @"TUICore_TUIChatExtension_ChatVCBottomContainer_VC"
  701. #define TUICore_TUIChatExtension_ChatVCBottomContainer_UserID @"TUICore_TUIChatExtension_ChatVCBottomContainer_UserID"
  702. // Chat Infopage UI extension
  703. #define TUICore_TUIChatExtension_GroupProfileMemberListExtension_ClassicExtensionID \
  704. @"TUICore_TUIChatExtension_GroupProfileMemberListExtension_ClassicExtensionID"
  705. #define TUICore_TUIChatExtension_GroupProfileMemberListExtension_MinimalistExtensionID \
  706. @"TUICore_TUIChatExtension_GroupProfileMemberListExtension_MinimalistExtensionID"
  707. #define TUICore_TUIChatExtension_GroupProfileSettingsItemExtension_ClassicExtensionID \
  708. @"TUICore_TUIChatExtension_GroupProfileSettingsItemExtension_ClassicExtensionID"
  709. #define TUICore_TUIChatExtension_GroupProfileSettingsItemExtension_MinimalistExtensionID \
  710. @"TUICore_TUIChatExtension_GroupProfileSettingsItemExtension_MinimalistExtensionID"
  711. #define TUICore_TUIChatExtension_GroupProfileBottomItemExtension_ClassicExtensionID \
  712. @"TUICore_TUIChatExtension_GroupProfileBottomItemExtension_ClassicExtensionID"
  713. #define TUICore_TUIChatExtension_GroupProfileBottomItemExtension_MinimalistExtensionID \
  714. @"TUICore_TUIChatExtension_GroupProfileBottomItemExtension_MinimalistExtensionID"
  715. #pragma mark - TUICore_TUIChat_ObjectFactory
  716. #define TUICore_TUIChatObjectFactory @"TUICore_TUIChatObjectFactory"
  717. #define TUICore_TUIChatObjectFactory_Minimalist @"TUICore_TUIChatObjectFactory_Minimalist"
  718. #pragma mark - TUICore_TUIChat_ObjectFactory_Route
  719. #define TUICore_TUIChatObjectFactory_ChatViewController_Classic @"TUICore_TUIChatObjectFactory_ChatViewController_Classic"
  720. #define TUICore_TUIChatObjectFactory_ChatViewController_Minimalist @"TUICore_TUIChatObjectFactory_ChatViewController_Minimalist"
  721. #define TUICore_TUIChatObjectFactory_ChatViewController_Title @"TUICore_TUIChatObjectFactory_ChatViewController_Title"
  722. #define TUICore_TUIChatObjectFactory_ChatViewController_UserID @"TUICore_TUIChatObjectFactory_ChatViewController_UserID"
  723. #define TUICore_TUIChatObjectFactory_ChatViewController_GroupID @"TUICore_TUIChatObjectFactory_ChatViewController_GroupID"
  724. #define TUICore_TUIChatObjectFactory_ChatViewController_ConversationID @"TUICore_TUIChatObjectFactory_ChatViewController_ConversationID"
  725. #define TUICore_TUIChatObjectFactory_ChatViewController_AvatarImage @"TUICore_TUIChatObjectFactory_ChatViewController_AvatarImage"
  726. #define TUICore_TUIChatObjectFactory_ChatViewController_AvatarUrl @"TUICore_TUIChatObjectFactory_ChatViewController_AvatarUrl"
  727. #define TUICore_TUIChatObjectFactory_ChatViewController_HighlightKeyword @"TUICore_TUIChatObjectFactory_ChatViewController_HighlightKeyword"
  728. #define TUICore_TUIChatObjectFactory_ChatViewController_LocateMessage @"TUICore_TUIChatObjectFactory_ChatViewController_LocateMessage"
  729. #define TUICore_TUIChatObjectFactory_ChatViewController_AtTipsStr @"TUICore_TUIChatObjectFactory_ChatViewController_AtTipsStr"
  730. #define TUICore_TUIChatObjectFactory_ChatViewController_AtMsgSeqs @"TUICore_TUIChatObjectFactory_ChatViewController_AtMsgSeqs"
  731. #define TUICore_TUIChatObjectFactory_ChatViewController_Draft @"TUICore_TUIChatObjectFactory_ChatViewController_Draft"
  732. #define TUICore_TUIChatObjectFactory_ChatViewController_Enable_Video_Call @"TUICore_TUIChatObjectFactory_ChatViewController_Enable_Video_Call"
  733. #define TUICore_TUIChatObjectFactory_ChatViewController_Enable_Audio_Call @"TUICore_TUIChatObjectFactory_ChatViewController_Enable_Audio_Call"
  734. #define TUICore_TUIChatObjectFactory_ChatViewController_Enable_Room @"TUICore_TUIChatObjectFactory_ChatViewController_Enable_Room"
  735. #define TUICore_TUIChatObjectFactory_ChatViewController_Enable_WelcomeCustomMessage @"TUICore_TUIChatObjectFactory_ChatViewController_Enable_WelcomeCustomMessage"
  736. #define TUICore_TUIChatObjectFactory_ChatViewController_Limit_Portrait_Orientation @"TUICore_TUIChatObjectFactory_ChatViewController_Limit_Portrait_Orientation"
  737. #define TUICore_TUIChatObjectFactory_ChatViewController_Enable_Poll @"TUICore_TUIChatObjectFactory_ChatViewController_Enable_Poll"
  738. #define TUICore_TUIChatObjectFactory_ChatViewController_Enable_GroupNote @"TUICore_TUIChatObjectFactory_ChatViewController_Enable_GroupNote"
  739. #define TUICore_TUIChatObjectFactory_ChatViewController_Enable_TakePhoto @"TUICore_TUIChatObjectFactory_ChatViewController_Enable_TakePhoto"
  740. #define TUICore_TUIChatObjectFactory_ChatViewController_Enable_RecordVideo @"TUICore_TUIChatObjectFactory_ChatViewController_Enable_RecordVideo"
  741. #define TUICore_TUIChatObjectFactory_ChatViewController_Enable_File @"TUICore_TUIChatObjectFactory_ChatViewController_Enable_File"
  742. #define TUICore_TUIChatObjectFactory_ChatViewController_Enable_Album @"TUICore_TUIChatObjectFactory_ChatViewController_Enable_Album"
  743. #pragma mark - TUICore_TUIConversation_Service
  744. #define TUICore_TUIConversationService @"TUICore_TUIConversationService"
  745. #define TUICore_TUIConversationService_Minimalist @"TUICore_TUIConversationService_Minimalist"
  746. #pragma mark - TUICore_TUIConversation_Notify
  747. #define TUICore_TUIConversationNotify @"TUICore_TUIConversationNotify"
  748. #define TUICore_TUIConversationNotify_RemoveConversationSubKey @"TUICore_TUIConversationNotify_RemoveConversationSubKey"
  749. #define TUICore_TUIConversationNotify_RemoveConversationSubKey_ConversationID @"TUICore_TUIConversationNotify_RemoveConversationSubKey_ConversationID"
  750. #define TUICore_TUIConversationNotify_ClearConversationUIHistorySubKey @"TUICore_TUIConversationNotify_ClearConversationUIHistorySubKey"
  751. #pragma mark - TUICore_TUIConversation_Extension
  752. // UI extension for the banner in the conversation list page
  753. #define TUICore_TUIConversationExtension_ConversationListBanner_ClassicExtensionID @"TUICore_TUIConversationExtension_ConversationListBanner_ClassicExtensionID"
  754. #define TUICore_TUIConversationExtension_ConversationListBanner_MinimalistExtensionID \
  755. @"TUICore_TUIConversationExtension_ConversationListBanner_MinimalistExtensionID"
  756. #define TUICore_TUIConversationExtension_ConversationListBanner_BannerSize @"TUICore_TUIConversationExtension_ConversationListBanner_BannerSize"
  757. #define TUICore_TUIConversationExtension_ConversationListBanner_ModalVC @"TUICore_TUIConversationExtension_ConversationListBanner_ModalVC"
  758. #pragma mark - TUICore_TUIConversation_ObjectFactory
  759. #define TUICore_TUIConversationObjectFactory @"TUICore_TUIConversationObjectFactory"
  760. #define TUICore_TUIConversationObjectFactory_Minimalist @"TUICore_TUIConversationObjectFactory_Minimalist"
  761. #define TUICore_TUIConversationObjectFactory_GetConversationControllerMethod @"TUICore_TUIConversationObjectFactory_GetConversationControllerMethod"
  762. #pragma mark - TUICore_TUIConversation_ObjectFactory_Route
  763. // Route to conversation select page
  764. #define TUICore_TUIConversationObjectFactory_ConversationSelectVC_Classic @"TUICore_TUIConversationObjectFactory_ConversationSelectVC_Classic"
  765. #define TUICore_TUIConversationObjectFactory_ConversationSelectVC_Minimalist @"TUICore_TUIConversationObjectFactory_ConversationSelectVC_Minimalist"
  766. #define TUICore_TUIConversationObjectFactory_ConversationSelectVC_ResultList @"TUICore_TUIConversationObjectFactory_ConversationSelectVC_ResultList"
  767. #define TUICore_TUIConversationObjectFactory_ConversationSelectVC_ResultList_ConversationID \
  768. @"TUICore_TUIConversationObjectFactory_ConversationSelectVC_ResultList_ConversationID"
  769. #define TUICore_TUIConversationObjectFactory_ConversationSelectVC_ResultList_Title @"TUICore_TUIConversationObjectFactory_ConversationSelectVC_ResultList_Title"
  770. #define TUICore_TUIConversationObjectFactory_ConversationSelectVC_ResultList_UserID \
  771. @"TUICore_TUIConversationObjectFactory_ConversationSelectVC_ResultList_UserID"
  772. #define TUICore_TUIConversationObjectFactory_ConversationSelectVC_ResultList_GroupID \
  773. @"TUICore_TUIConversationObjectFactory_ConversationSelectVC_ResultList_GroupID"
  774. // UI extension for the banner in the conversation group list
  775. #define TUICore_TUIConversationExtension_ConversationGroupListBanner_ClassicExtensionID \
  776. @"TUICore_TUIConversationExtension_ConversationGroupListBanner_ClassicExtensionID"
  777. #define TUICore_TUIConversationExtension_ConversationGroupListBanner_GroupItemKey @"TUICore_TUIConversationExtension_ConversationGroupListBanner_GroupItemKey"
  778. // UI extension for the conversation group manager
  779. #define TUICore_TUIConversationExtension_ConversationGroupManagerContainer_ClassicExtensionID \
  780. @"TUICore_TUIConversationExtension_ConversationGroupManagerContainer_ClassicExtensionID"
  781. #define TUICore_TUIConversationExtension_ConversationGroupManagerContainer_ParentVCKey \
  782. @"TUICore_TUIConversationExtension_ConversationGroupManagerContainer_ParentVCKey"
  783. // UI extension for the conversation list
  784. #define TUICore_TUIConversationExtension_ConversationListContainer_ClassicExtensionID \
  785. @"TUICore_TUIConversationExtension_ConversationListContainer_ClassicExtensionID"
  786. #define TUICore_TUIConversationExtension_ConversationListContainer_GroupNameKey @"TUICore_TUIConversationExtension_ConversationListContainer_GroupNameKey"
  787. // UI extension for the conversation cell upper right corner
  788. #define TUICore_TUIConversationExtension_ConversationCellUpperRightCorner_ClassicExtensionID \
  789. @"TUICore_TUIConversationExtension_ConversationCellUpperRightCorner_ClassicExtensionID"
  790. #define TUICore_TUIConversationExtension_ConversationCellUpperRightCorner_GroupListKey \
  791. @"TUICore_TUIConversationExtension_ConversationCellUpperRightCorner_GroupListKey"
  792. #define TUICore_TUIConversationExtension_ConversationCellUpperRightCorner_MarkListKey \
  793. @"TUICore_TUIConversationExtension_ConversationCellUpperRightCorner_MarkListKey"
  794. // UI extension for click more
  795. #define TUICore_TUIConversationExtension_ConversationCellMoreAction_ClassicExtensionID \
  796. @"TUICore_TUIConversationExtension_ConversationCellMoreAction_ClassicExtensionID"
  797. #define TUICore_TUIConversationExtension_ConversationCellAction_ConversationIDKey @"TUICore_TUIConversationExtension_ConversationCellAction_ConversationIDKey"
  798. #define TUICore_TUIConversationExtension_ConversationCellAction_MarkListKey @"TUICore_TUIConversationExtension_ConversationCellAction_MarkListKey"
  799. #define TUICore_TUIConversationExtension_ConversationCellAction_GroupListKey @"TUICore_TUIConversationExtension_ConversationCellAction_GroupListKey"
  800. #pragma mark - TUICore_TUIConversationGroupNotify
  801. #define TUICore_TUIConversationGroupNotify @"TUICore_TUIConversationGroupNotify"
  802. #define TUICore_TUIConversationGroupNotify_GroupListReloadKey @"TUICore_TUIConversationGroupNotify_GroupListReloadKey"
  803. #define TUICore_TUIConversationGroupNotify_GroupAddKey @"TUICore_TUIConversationGroupNotify_GroupAddKey"
  804. #define TUICore_TUIConversationGroupNotify_GroupUpdateKey @"TUICore_TUIConversationGroupNotify_GroupUpdateKey"
  805. #define TUICore_TUIConversationGroupNotify_GroupRenameKey @"TUICore_TUIConversationGroupNotify_GroupRenameKey"
  806. #define TUICore_TUIConversationGroupNotify_GroupDeleteKey @"TUICore_TUIConversationGroupNotify_GroupDeleteKey"
  807. #pragma mark - UICore_TUIConversationGroupExtension
  808. #define TUICore_TUIConversationGroupExtension_ConversationGroupListSort_ClassicExtensionID \
  809. @"TUICore_TUIConversationGroupExtension_ConversationGroupListSort_ClassicExtensionID"
  810. #define TUICore_TUIConversationGroupExtension_ConversationGroupListSort_GroupItemKey \
  811. @"TUICore_TUIConversationGroupExtension_ConversationGroupListSort_GroupItemKey"
  812. #pragma mark - TUICore_TUIConversationMarkNotify
  813. #define TUICore_TUIConversationMarkNotify @"TUICore_TUIConversationMarkNotify"
  814. #define TUICore_TUIConversationGroupNotify_MarkAddKey @"TUICore_TUIConversationGroupNotify_MarkAddKey"
  815. #define TUICore_TUIConversationGroupNotify_MarkUpdateKey @"TUICore_TUIConversationGroupNotify_MarkUpdateKey"
  816. #pragma mark - TUICore_TUIContact_Service
  817. #define TUICore_TUIContactService @"TUICore_TUIContactService"
  818. #define TUICore_TUIContactService_Minimalist @"TUICore_TUIContactService_Minimalist"
  819. #define TUICore_TUIContactService_CreateGroupMethod @"TUICore_TUIContactService_CreateGroupMethod"
  820. #define TUICore_TUIContactService_CreateGroupMethod_GroupTypeKey @"TUICore_TUIContactService_CreateGroupMethod_GroupTypeKey"
  821. #define TUICore_TUIContactService_CreateGroupMethod_OptionKey @"TUICore_TUIContactService_CreateGroupMethod_OptionKey"
  822. #define TUICore_TUIContactService_CreateGroupMethod_ContactsKey @"TUICore_TUIContactService_CreateGroupMethod_ContactsKey"
  823. #define TUICore_TUIContactService_CreateGroupMethod_CompletionKey @"TUICore_TUIContactService_CreateGroupMethod_CompletionKey"
  824. #pragma mark - TUICore_TUIContact_Notify
  825. #define TUICore_TUIContactNotify @"TUICore_TUIContactNotify"
  826. #define TUICore_TUIContactNotify_UpdateConversationBackgroundImageSubKey @"TUICore_TUIContactNotify_UpdateConversationBackgroundImageSubKey"
  827. #define TUICore_TUIContactNotify_UpdateConversationBackgroundImageSubKey_ConversationID \
  828. @"TUICore_TUIContactNotify_UpdateConversationBackgroundImageSubKey_ConversationID"
  829. #define TUICore_TUIContactNotify_OnAddMemebersClickSubKey @"TUICore_TUIContactNotify_OnAddMemebersClickSubKey"
  830. #pragma mark - TUICore_TUIContact_Extension
  831. // UI extension for the action menus in the friend profile page
  832. #define TUICore_TUIContactExtension_FriendProfileActionMenu_ClassicExtensionID @"TUICore_TUIContactExtension_FriendProfileActionMenu_ClassicExtensionID"
  833. #define TUICore_TUIContactExtension_FriendProfileActionMenu_MinimalistExtensionID @"TUICore_TUIContactExtension_FriendProfileActionMenu_MinimalistExtensionID"
  834. #define TUICore_TUIContactExtension_FriendProfileActionMenu_UserID @"TUICore_TUIContactExtension_FriendProfileActionMenu_UserID"
  835. #define TUICore_TUIContactExtension_FriendProfileActionMenu_UserIcon @"TUICore_TUIContactExtension_FriendProfileActionMenu_UserIcon"
  836. #define TUICore_TUIContactExtension_FriendProfileActionMenu_UserName @"TUICore_TUIContactExtension_FriendProfileActionMenu_UserName"
  837. #define TUICore_TUIContactExtension_FriendProfileActionMenu_FilterVideoCall @"TUICore_TUIContactExtension_FriendProfileActionMenu_FilterVideoCall"
  838. #define TUICore_TUIContactExtension_FriendProfileActionMenu_FilterAudioCall @"TUICore_TUIContactExtension_FriendProfileActionMenu_FilterAudioCall"
  839. #define TUICore_TUIContactExtension_FriendProfileActionMenu_PushVC @"TUICore_TUIContactExtension_FriendProfileActionMenu_PushVC"
  840. // UI extension for the settings in the "Me" profile page
  841. #define TUICore_TUIContactExtension_MeSettingMenu_ClassicExtensionID @"TUICore_TUIContactExtension_MeSettingMenu_ClassicExtensionID"
  842. #define TUICore_TUIContactExtension_MeSettingMenu_MinimalistExtensionID @"TUICore_TUIContactExtension_MeSettingMenu_MinimalistExtensionID"
  843. #define TUICore_TUIContactExtension_MeSettingMenu_Nav @"TUICore_TUIContactExtension_MeSettingMenu_Nav"
  844. #define TUICore_TUIContactExtension_MeSettingMenu_Data @"TUICore_TUIContactExtension_MeSettingMenu_Data"
  845. #define TUICore_TUIContactExtension_MeSettingMenu_View @"TUICore_TUIContactExtension_MeSettingMenu_View"
  846. #define TUICore_TUIContactExtension_MeSettingMenu_Weight @"TUICore_TUIContactExtension_MeSettingMenu_Weight"
  847. // UI extension for group type in the "Contact" page
  848. #define TUICore_TUIContactExtension_ContactMenu_ClassicExtensionID @"TUICore_TUIContactExtension_ContactMenu_ClassicExtensionID"
  849. #define TUICore_TUIContactExtension_ContactMenu_MinimalistExtensionID @"TUICore_TUIContactExtension_ContactMenu_MinimalistExtensionID"
  850. #define TUICore_TUIContactExtension_ContactMenu_Nav @"TUICore_TUIContactExtension_ContactMenu_Nav"
  851. // UI extension for the action menus in the group infomation page
  852. #define TUICore_TUIContactExtension_GroupInfoCardActionMenu_MinimalistExtensionID \
  853. @"TUICore_TUIContactExtension_GroupInfoCardActionMenu_MinimalistExtensionID"
  854. #define TUICore_TUIContactExtension_GroupInfoCardActionMenu_GroupID \
  855. @"TUICore_TUIContactExtension_GroupInfoCardActionMenu_GroupID"
  856. #define TUICore_TUIContactExtension_GroupInfoCardActionMenu_FilterVideoCall \
  857. @"TUICore_TUIContactExtension_GroupInfoCardActionMenu_FilterVideoCall"
  858. #define TUICore_TUIContactExtension_GroupInfoCardActionMenu_FilterAudioCall \
  859. @"TUICore_TUIContactExtension_GroupInfoCardActionMenu_FilterAudioCall"
  860. #define TUICore_TUIContactExtension_GroupInfoCardActionMenu_PushVC \
  861. @"TUICore_TUIContactExtension_GroupInfoCardActionMenu_PushVC"
  862. #pragma mark - TUICore_TUIContact_ObjectFactory
  863. #define TUICore_TUIContactObjectFactory @"TUICore_TUIContactObjectFactory"
  864. #define TUICore_TUIContactObjectFactory_Minimalist @"TUICore_TUIContactObjectFactory_Minimalist"
  865. #define TUICore_TUIContactObjectFactory_GetContactControllerMethod @"TUICore_TUIContactObjectFactory_GetContactControllerMethod"
  866. #define TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod \
  867. @"TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod"
  868. #define TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_TitleKey \
  869. @"TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_TitleKey"
  870. #define TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_MaxSelectCount \
  871. @"TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_MaxSelectCount"
  872. #define TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_SourceIdsKey \
  873. @"TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_SourceIdsKey"
  874. #define TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_DisableIdsKey \
  875. @"TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_DisableIdsKey"
  876. #define TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_DisplayNamesKey \
  877. @"TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_DisplayNamesKey"
  878. #define TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_CompletionKey \
  879. @"TUICore_TUIContactObjectFactory_GetContactSelectControllerMethod_CompletionKey"
  880. #define TUICore_TUIContactObjectFactory_GetFriendProfileControllerMethod @"TUICore_TUIContactObjectFactory_GetFriendProfileControllerMethod"
  881. #define TUICore_TUIContactObjectFactory_GetFriendProfileControllerMethod_FriendProfileKey \
  882. @"TUICore_TUIContactObjectFactory_GetFriendProfileControllerMethod_FriendProfileKey"
  883. #define TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod @"TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod"
  884. #define TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod_TitleKey @"TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod_TitleKey"
  885. #define TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod_GroupNameKey \
  886. @"TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod_GroupNameKey"
  887. #define TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod_GroupTypeKey \
  888. @"TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod_GroupTypeKey"
  889. #define TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod_ContactListKey \
  890. @"TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod_ContactListKey"
  891. #define TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod_CompletionKey \
  892. @"TUICore_TUIContactObjectFactory_GetGroupCreateControllerMethod_CompletionKey"
  893. #define TUICore_TUIContactObjectFactory_GetUserOrFriendProfileVCMethod @"TUICore_TUIContactObjectFactory_GetUserOrFriendProfileVCMethod"
  894. #define TUICore_TUIContactObjectFactory_GetUserOrFriendProfileVCMethod_UserIDKey @"TUICore_TUIContactService_etUserOrFriendProfileVCMethod_UserIDKey"
  895. #define TUICore_TUIContactObjectFactory_GetUserOrFriendProfileVCMethod_SuccKey @"TUICore_TUIContactObjectFactory_GetUserOrFriendProfileVCMethod_SuccKey"
  896. #define TUICore_TUIContactObjectFactory_GetUserOrFriendProfileVCMethod_FailKey @"TUICore_TUIContactObjectFactory_GetUserOrFriendProfileVCMethod_FailKey"
  897. #define TUICore_TUIContactObjectFactory_GetGroupMemberVCMethod @"TUICore_TUIContactObjectFactory_GetGroupMemberVCMethod"
  898. #define TUICore_TUIContactObjectFactory_GetGroupRequestViewControllerMethod @"TUICore_TUIContactObjectFactory_GetGroupRequestViewControllerMethod"
  899. #define TUICore_TUIContactObjectFactory_GetGroupRequestViewControllerMethod_GroupInfoKey \
  900. @"TUICore_TUIContactObjectFactory_GetGroupRequestViewControllerMethod_GroupInfoKey"
  901. #pragma mark - TUICore_TUIContact_ObjectFactory_Route
  902. // Route to user profile page
  903. #define TUICore_TUIContactObjectFactory_UserProfileController_Classic @"TUICore_TUIContactObjectFactory_UserProfileController_Classic"
  904. #define TUICore_TUIContactObjectFactory_UserProfileController_Minimalist @"TUICore_TUIContactObjectFactory_UserProfileController_Minimalist"
  905. #define TUICore_TUIContactObjectFactory_UserProfileController_UserProfile @"TUICore_TUIContactObjectFactory_UserProfileController_UserProfile"
  906. #define TUICore_TUIContactObjectFactory_UserProfileController_PendencyData @"TUICore_TUIContactObjectFactory_UserProfileController_PendencyData"
  907. #define TUICore_TUIContactObjectFactory_UserProfileController_ActionType @"TUICore_TUIContactObjectFactory_UserProfileController_ActionType"
  908. // Route to the page for selecting group member
  909. #define TUICore_TUIContactObjectFactory_SelectGroupMemberVC_Classic \
  910. @"TUICore_TUIContactObjectFactory_SelectGroupMemberVC_Classic"
  911. #define TUICore_TUIContactObjectFactory_SelectGroupMemberVC_Minimalist \
  912. @"TUICore_TUIContactObjectFactory_SelectGroupMemberVC_Minimalist"
  913. #define TUICore_TUIContactObjectFactory_SelectGroupMemberVC_GroupID \
  914. @"TUICore_TUIContactObjectFactory_SelectGroupMemberVC_GroupID"
  915. #define TUICore_TUIContactObjectFactory_SelectGroupMemberVC_Name \
  916. @"TUICore_TUIContactObjectFactory_SelectGroupMemberVC_Name"
  917. #define TUICore_TUIContactObjectFactory_SelectGroupMemberVC_OptionalStyle @"TUICore_TUIContactObjectFactory_SelectGroupMemberVC_OptionalStyle"
  918. #define TUICore_TUIContactObjectFactory_SelectGroupMemberVC_SelectedUserIDList \
  919. @"TUICore_TUIContactObjectFactory_SelectGroupMemberVC_SelectedUserIDList"
  920. #define TUICore_TUIContactObjectFactory_SelectGroupMemberVC_ResultUserList @"TUICore_TUIContactObjectFactory_SelectGroupMemberVC_ResultUserList"
  921. // Route to group info page
  922. #define TUICore_TUIContactObjectFactory_GetGroupInfoVC_Classic @"TUICore_TUIContactObjectFactory_GetGroupInfoVC_Classic"
  923. #define TUICore_TUIContactObjectFactory_GetGroupInfoVC_Minimalist @"TUICore_TUIContactObjectFactory_GetGroupInfoVC_Minimalist"
  924. #define TUICore_TUIContactObjectFactory_GetGroupInfoVC_GroupID @"TUICore_TUIContactObjectFactory_GetGroupInfoVC_GroupID"
  925. #pragma mark - TUICore_TUICallKit_TUICallingService
  926. #define TUICore_TUICallingService @"TUICore_TUICallingService"
  927. #define TUICore_TUICallingService_ShowCallingViewMethod @"TUICore_TUICallingService_ShowCallingViewMethod"
  928. #define TUICore_TUICallingService_ShowCallingViewMethod_GroupIDKey @"TUICore_TUICallingService_ShowCallingViewMethod_GroupIDKey"
  929. #define TUICore_TUICallingService_ShowCallingViewMethod_UserIDsKey @"TUICore_TUICallingService_ShowCallingViewMethod_UserIDsKey"
  930. #define TUICore_TUICallingService_ShowCallingViewMethod_CallTypeKey @"TUICore_TUICallingService_ShowCallingViewMethod_CallTypeKey"
  931. #define TUICore_TUICallingService_ReceivePushCallingMethod @"TUICore_TUICallingService_ReceivePushCallingMethod"
  932. #define TUICore_TUICallingService_ShowCallingViewMethod_SignalingInfo @"TUICore_TUICallingService_ShowCallingViewMethod_SignalingInfo"
  933. #define TUICore_TUICallingService_EnableMultiDeviceAbilityMethod @"TUICore_TUICallingService_EnableMultiDeviceAbilityMethod"
  934. #define TUICore_TUICallingService_EnableMultiDeviceAbilityMethod_EnableMultiDeviceAbility \
  935. @"TUICore_TUICallingService_EnableMultiDeviceAbilityMethod_EnableMultiDeviceAbility"
  936. #define TUICore_TUICallingService_EnableFloatWindowMethod @"TUICore_TUICallingService_EnableFloatWindowMethod"
  937. #define TUICore_TUICallingService_EnableFloatWindowMethod_EnableFloatWindow @"TUICore_TUICallingService_EnableFloatWindowMethod_EnableFloatWindow"
  938. #define TUICore_TUICallingService_EnableIncomingBannerMethod @"TUICore_TUICallingService_EnableIncomingBannerMethod"
  939. #define TUICore_TUICallingService_EnableIncomingBannerMethod_EnableIncomingBanner @"TUICore_TUICallingService_EnableIncomingBannerMethod_EnableIncomingBanner"
  940. #define TUICore_TUICallingService_EnableVirtualBackgroundForCallMethod @"TUICore_TUICallingService_EnableVirtualBackgroundForCallMethod"
  941. #define TUICore_TUICallingService_EnableVirtualBackgroundForCallMethod_EnableVirtualBackgroundForCall @"TUICore_TUICallingService_EnableVirtualBackgroundForCallMethod_EnableVirtualBackgroundForCall"
  942. #define TUICore_TUICallingService_SetAudioPlaybackDeviceMethod @"TUICore_TUICallingService_SetAudioPlaybackDeviceMethod"
  943. #define TUICore_TUICallingService_SetAudioPlaybackDevice_AudioPlaybackDevice @"TUICore_TUICallingService_SetAudioPlaybackDevice_AudioPlaybackDevice"
  944. #define TUICore_TUICallingService_SetIsMicMuteMethod @"TUICore_TUICallingService_SetIsMicMuteMethod"
  945. #define TUICore_TUICallingService_SetIsMicMuteMethod_IsMicMute @"TUICore_TUICallingService_SetIsMicMuteMethod_IsMicMute"
  946. #define TUICore_TUICallingService_HangupMethod @"TUICore_TUICallingService_HangupMethod"
  947. #define TUICore_TUICallingService_AcceptMethod @"TUICore_TUICallingService_AcceptMethod"
  948. #pragma mark - TUICore_TUICallKit_TUIAudioMessageRecordService
  949. #define TUICore_TUIAudioMessageRecordService @"TUIAudioMessageRecordService"
  950. #define TUICore_TUIAudioMessageRecordService_StartRecordAudioMessageMethod @"TUICore_TUIAudioMessageRecordService_StartRecordAudioMessageMethod"
  951. #define TUICore_TUIAudioMessageRecordService_StopRecordAudioMessageMethod @"TUICore_TUIAudioMessageRecordService_StopRecordAudioMessageMethod"
  952. #define TUICore_TUIAudioMessageRecordService_StartRecordAudioMessageMethod_SdkappidKey @"sdkappid"
  953. #define TUICore_TUIAudioMessageRecordService_StartRecordAudioMessageMethod_SignatureKey @"signature"
  954. #define TUICore_TUIAudioMessageRecordService_StartRecordAudioMessageMethod_PathKey @"path"
  955. #pragma mark - TUICore_TUICallKit_TUICallingNotify
  956. #define TUICore_RecordAudioMessageNotify @"TUICore_RecordAudioMessageNotify"
  957. #define TUICore_RecordAudioMessageNotify_StartRecordAudioMessageSubKey @"TUICore_RecordAudioMessageNotify_StartRecordAudioMessageSubKey"
  958. #define TUICore_RecordAudioMessageNotify_StopRecordAudioMessageSubKey @"TUICore_RecordAudioMessageNotify_StopRecordAudioMessageSubKey"
  959. #define TUICore_RecordAudioMessageNotify_RecordAudioVoiceVolumeSubKey @"TUICore_RecordAudioMessageNotify_RecordAudioVoiceVolumeSubKey"
  960. #define TUICore_RecordAudioMessageNotify_RecordAudioVoiceVolumeSubKey_VolumeKey @"volume"
  961. #pragma mark - TUICore_TUICallKit_TUICallingObjectFactory
  962. #define TUICore_TUICallingObjectFactory @"TUICore_TUICallingObjectFactory"
  963. // Get the view controler for displaying call history
  964. #define TUICore_TUICallingObjectFactory_RecordCallsVC @"TUICore_TUICallingObjectFactory_RecordCallsVC"
  965. #define TUICore_TUICallingObjectFactory_RecordCallsVC_UIStyle @"TUICore_TUICallingObjectFactory_RecordCallsVC_UIStyle"
  966. #define TUICore_TUICallingObjectFactory_RecordCallsVC_UIStyle_Classic @"TUICore_TUICallingObjectFactory_RecordCallsVC_UIStyle_Classic"
  967. #define TUICore_TUICallingObjectFactory_RecordCallsVC_UIStyle_Minimalist @"TUICore_TUICallingObjectFactory_RecordCallsVC_UIStyle_Minimalist"
  968. #pragma mark - TUICore_TUIPlugin_Notify
  969. #define TUICore_TUIPluginNotify @"TUICore_TUIPluginNotify"
  970. #define TUICore_TUIPluginNotify_PluginCustomCellClick @"TUICore_TUIPluginNotify_PluginCustomCellClick"
  971. #define TUICore_TUIPluginNotify_PluginCustomCellClick_PushVC @"TUICore_TUIPluginNotify_PluginCustomCellClick_PushVC"
  972. #define TUICore_TUIPluginNotify_PluginCustomCellClick_Cell @"TUICore_TUIPluginNotify_PluginCustomCellClick_Cell"
  973. #define TUICore_TUIPluginNotify_PluginViewSizeChangedSubKey @"TUICore_TUIPluginNotify_PluginViewSizeChangedSubKey"
  974. #define TUICore_TUIPluginNotify_PluginViewSizeChangedSubKey_Message @"TUICore_TUIPluginNotify_PluginViewSizeChangedSubKey_Message"
  975. #define TUICore_TUIPluginNotify_PluginViewDidAddToSuperview @"TUICore_TUIPluginNotify_PluginViewDidAddToSuperview"
  976. #define TUICore_TUIPluginNotify_PluginViewDidAddToSuperviewSubKey_PluginViewHeight @"TUICore_TUIPluginNotify_PluginViewDidAddToSuperviewSubKey_PluginViewHeight"
  977. #define TUICore_TUIPluginNotify_DidChangePluginViewSubKey @"TUICore_TUIPluginNotify_DidChangePluginViewSubKey"
  978. #define TUICore_TUIPluginNotify_DidChangePluginViewSubKey_Data @"TUICore_TUIPluginNotify_DidChangePluginViewSubKey_Data"
  979. #define TUICore_TUIPluginNotify_DidChangePluginViewSubKey_VC @"TUICore_TUIPluginNotify_DidChangePluginViewSubKey_VC"
  980. #define TUICore_TUIPluginNotify_DidChangePluginViewSubKey_isAllowScroll2Bottom @"TUICore_TUIPluginNotify_DidChangePluginViewSubKey_isAllowScroll2Bottom"
  981. #define TUICore_TUIPluginNotify_WillForwardTextSubKey @"TUICore_TUIPluginNotify_WillForwardTextSubKey"
  982. #define TUICore_TUIPluginNotify_WillForwardTextSubKey_Text @"TUICore_TUIPluginNotify_WillForwardTextSubKey_Text"
  983. // Initialization and recording successful, recording successful
  984. #define TUICore_RecordAudioMessageNotifyError_None 0
  985. // Parameter is empty
  986. #define TUICore_RecordAudioMessageNotifyError_InvalidParam -1001
  987. // Recording rejected, currently on a call
  988. #define TUICore_RecordAudioMessageNotifyError_StatusInCall -1002
  989. // The recording was rejected and the current recording has not ended.
  990. #define TUICore_RecordAudioMessageNotifyError_StatusIsAudioRecording -1003
  991. // Recording rejected, failed to obtain microphone permission
  992. #define TUICore_RecordAudioMessageNotifyError_MicPermissionRefused -1004
  993. // Recording rejected, failed to obtain audio focus
  994. #define TUICore_RecordAudioMessageNotifyError_RequestAudioFocusFailed -1005
  995. // -1, failed to initialize recording (onLocalRecordBegin)
  996. #define TUICore_RecordAudioMessageNotifyError_RecordInitFailed -2001
  997. // -2, wrong file extension (onLocalRecordBegin)
  998. #define TUICore_RecordAudioMessageNotifyError_PathFormatNotSupport -2002
  999. // -1, recording failed
  1000. #define TUICore_RecordAudioMessageNotifyError_RecordFailed -2003
  1001. // -3, the audio data or video data has not arrived and the formal recording has not started.
  1002. #define TUICore_RecordAudioMessageNotifyError_NoMessageToRecord -2004
  1003. // -4, signature error (onLocalRecordBegin)
  1004. #define TUICore_RecordAudioMessageNotifyError_SignatureError -3001
  1005. // -5, signature expired (onLocalRecordBegin)
  1006. #define TUICore_RecordAudioMessageNotifyError_SignatureExpired -3002
  1007. // Failed to open the microphone. For example, on Windows or Mac devices, the microphone configuration program (driver) is abnormal. Disable and then re-enable the device, or restart the machine, or update the configuration program.
  1008. #define TUICore_RecordAudioMessageNotifyError_MicStartFail -1302
  1009. // The microphone device is not authorized. It usually appears on mobile devices. The permission may be denied by the user.
  1010. #define TUICore_RecordAudioMessageNotifyError_MicNotAuthorized -1317
  1011. // Microphone setting parameters failed
  1012. #define TUICore_RecordAudioMessageNotifyError_MicSetParamFail -1318
  1013. // The microphone is occupied. For example, when the mobile device is making a call, opening the microphone will fail.
  1014. #define TUICore_RecordAudioMessageNotifyError_MicOccupy -1319
  1015. #pragma mark - TUICore_TUIGiftExtension
  1016. #define TUICore_TUIGiftExtension_GetEnterBtn @"TUICore_TUIGiftExtension_GetEnterBtn"
  1017. #define TUICore_TUIGiftExtension_GetLikeBtn @"TUICore_TUIGiftExtension_GetLikeBtn"
  1018. #define TUICore_TUIGiftExtension_GetTUIGiftListPanel @"TUICore_TUIGiftExtension_GetTUIGiftListPanel"
  1019. #define TUICore_TUIGiftExtension_GetTUIGiftPlayView @"TUICore_TUIGiftExtension_GetTUIGiftPlayView"
  1020. #pragma mark - TUICore_TUIGiftService
  1021. #define TUICore_TUIGiftService @"TUICore_TUIGiftService"
  1022. #define TUICore_TUIGiftService_SendLikeMethod @"TUICore_TUIGiftService_SendLikeMethod"
  1023. #pragma mark - TUICore_TUIBarrageExtension
  1024. #define TUICore_TUIBarrageExtension_GetEnterBtn @"TUICore_TUIBarrageExtension_GetEnterBtn"
  1025. #define TUICore_TUIBarrageExtension_GetTUIBarrageSendView @"TUICore_TUIBarrageExtension_GetTUIBarrageSendView"
  1026. #define TUICore_TUIBarrageExtension_TUIBarrageDisplayView @"TUICore_TUIBarrageExtension_GetTUIBarrageDisplayView"
  1027. #pragma mark - TUICore_TUIBeautyExtension
  1028. #define TUICore_TUIBeautyExtension_BeautyView @"TUICore_TUIBeautyExtension_BeautyView"
  1029. #define TUICore_TUIBeautyExtension_Extension @"TUICore_TUIBeautyExtension_Extension"
  1030. #define TUICore_TUIBeautyExtension_BeautyView_View @"TUICore_TUIBeautyExtension_BeautyView_View"
  1031. #define TUICore_TUIBeautyExtension_Extension_View @"TUICore_TUIBeautyExtension_Extension_View"
  1032. #define TUICore_TUIBeautyExtension_BeautyView_BeautyManager @"TUICore_TUIBeautyExtension_BeautyView_BeautyManager"
  1033. #define TUICore_TUIBeautyExtension_BeautyView_LicenseUrl @"TUICore_TUIBeautyExtension_BeautyView_LicenseUrl"
  1034. #define TUICore_TUIBeautyExtension_BeautyView_LicenseKey @"TUICore_TUIBeautyExtension_BeautyView_LicenseKey"
  1035. #define TUICore_TUIBeautyExtension_BeautyView_DataProcessDelegate @"TUICore_TUIBeautyExtension_BeautyView_DataProcessDelegate"
  1036. #pragma mark - TUICore_TUIBeautyService
  1037. #define TUICore_TUIBeautyService @"TUICore_TUIBeautyService"
  1038. #define TUICore_TUIBeautyService_SetLicense @"TUICore_TUIBeautyService_SetLicense"
  1039. #define TUICore_TUIBeautyService_ProcessVideoFrame @"TUICore_TUIBeautyService_ProcessVideoFrame"
  1040. #define TUICore_TUIBeautyService_ProcessVideoFrame_SRCTextureIdKey @"TUICore_TUIBeautyService_ProcessVideoFrame_SRCTextureIdKey"
  1041. #define TUICore_TUIBeautyService_ProcessVideoFrame_SRCFrameWidthKey @"TUICore_TUIBeautyService_ProcessVideoFrame_SRCFrameWidthKey"
  1042. #define TUICore_TUIBeautyService_ProcessVideoFrame_SRCFrameHeightKey @"TUICore_TUIBeautyService_ProcessVideoFrame_SRCFrameHeightKey"
  1043. #pragma mark - TUICore_TUIAudioEffectViewExtension
  1044. #define TUICore_TUIAudioEffectViewExtension_AudioEffectView @"TUICore_TUIAudioEffectViewExtension_AudioEffectView"
  1045. #define TUICore_TUIAudioEffectViewExtension_Extension @"TUICore_TUIAudioEffectViewExtension_Extension"
  1046. #define TUICore_TUIAudioEffectViewExtension_AudioEffectView_View @"TUICore_TUIAudioEffectViewExtension_AudioEffectView_View"
  1047. #define TUICore_TUIAudioEffectViewExtension_Extension_View @"TUICore_TUIAudioEffectViewExtension_Extension_View"
  1048. #define TUICore_TUIAudioEffectViewExtension_AudioEffectView_AudioEffectManager @"TUICore_TUIAudioEffectViewExtension_AudioEffectView_AudioEffectManager"
  1049. #pragma mark - TUICore_NetworkConnection_EVENT
  1050. #define TUICore_NetworkConnection_EVENT_CONNECTION_STATE_CHANGED @"eventConnectionStateChanged"
  1051. #define TUICore_NetworkConnection_EVENT_SUB_KEY_CONNECTING @"eventSubKeyConnecting"
  1052. #define TUICore_NetworkConnection_EVENT_SUB_KEY_CONNECT_SUCCESS @"eventSubKeyConnectSuccess"
  1053. #define TUICore_NetworkConnection_EVENT_SUB_KEY_CONNECT_FAILED @"eventSubKeyConnectFailed"
  1054. #pragma mark - TUICore_TUIRoomImAccessService
  1055. #define TUICore_TUIRoomImAccessService @"TUICore_TUIRoomImAccessService"
  1056. #define TUICore_TUIRoomImAccessService_EnableFloatWindowMethod @"TUICore_TUIRoomImAccessService_EnableFloatWindowMethod"
  1057. #define TUICore_TUIRoomImAccessService_EnableFloatWindowMethod_EnableFloatWindow @"TUICore_TUIRoomImAccessService_EnableFloatWindowMethod_EnableFloatWindow"
  1058. #pragma mark - TUICore_TUIRoomImAccessFactory
  1059. #define TUICore_TUIRoomImAccessFactory @"TUICore_TUIRoomImAccessFactory"
  1060. #define TUICore_TUIRoomImAccessFactory_GetRoomMessageViewMethod @"TUICore_TUIRoomImAccessFactory_GetRoomMessageViewMethod"
  1061. #define TUICore_TUIRoomImAccessFactory_GetRoomMessageViewMethod_Message @"TUICore_TUIRoomImAccessFactory_GetRoomMessageViewMethod_Message"
  1062. #pragma mark - TUICore_PrivacyService_ScreenShareAntifraudReminderService
  1063. #define TUICore_PrivacyService @"TUICore_PrivacyService"
  1064. #define TUICore_PrivacyService_ScreenShareAntifraudReminderMethod @"TUICore_PrivacyService_ScreenShareAntifraudReminderMethod"
  1065. #define TUICore_PrivacyService_EnableScreenShareAntifraudReminderMethod_Cancel -1
  1066. #define TUICore_PrivacyService_EnableScreenShareAntifraudReminderMethod_Continue 0
  1067. #define TUICore_PrivacyService_CallKitAntifraudReminderMethod @"TUICore_PrivacyService_CallKitAntifraudReminderMethod"
  1068. #pragma mark - TUICore_PrivacyService_COMMUNICATION_EVENT
  1069. #define TUICore_PrivacyService_ROOM_STATE_EVENT_CHANGED @"eventRoomStateChanged"
  1070. #define TUICore_PrivacyService_ROOM_STATE_EVENT_SUB_KEY_START @"eventSubKeyStart"
  1071. #define TUICore_PrivacyService_ROOM_STATE_EVENT_SUB_KEY_END @"eventSubKeyEnd"
  1072. #pragma mark - TUICore_TUICallKitVoIPExtension_Notify
  1073. #define TUICore_TUICallKitVoIPExtensionNotify @"TUICore_TUICallKitVoIPExtension_Notify"
  1074. #define TUICore_TUICore_TUICallKitVoIPExtensionNotify_OpenMicrophoneSubKey @"TUICore_TUICore_TUICallKitVoIPExtensionNotify_OpenMicrophoneSubKey"
  1075. #define TUICore_TUICore_TUICallKitVoIPExtensionNotify_CloseMicrophoneSubKey @"TUICore_TUICore_TUICallKitVoIPExtensionNotify_CloseMicrophoneSubKey"
  1076. #pragma mark - TUICore_TUIVoIPExtension_Notify
  1077. #define TUICore_TUIVoIPExtensionNotify @"TUICore_TUIVoIPExtension_Notify"
  1078. #define TUICore_TUICore_TUIVoIPExtensionNotify_MuteSubKey @"TUICore_TUICore_TUIVoIPExtensionNotify_MuteSubKey"
  1079. #define TUICore_TUICore_TUIVoIPExtensionNotify_MuteSubKey_IsMuteKey @"TUICore_TUICore_TUIVoIPExtensionNotify_MuteSubKey_IsMuteKey"
  1080. #define TUICore_TUICore_TUIVoIPExtensionNotify_EndSubKey @"TUICore_TUICore_TUIVoIPExtensionNotify_EndSubKey"
  1081. #define TUICore_TUICore_TUIVoIPExtensionNotify_ConnectedKey @"TUICore_TUICore_TUIVoIPExtensionNotify_ConnectedKey"
  1082. #define TUICore_TUICore_TUIVoIPExtensionNotify_UpdateInfoSubKey @"TUICore_TUICore_TUIVoIPExtensionNotify_UpdateInfoSubKey"
  1083. #define TUICore_TUICore_TUIVoIPExtensionNotify_UpdateInfoSubKey_InviterIdKey @"TUICore_TUICore_TUIVoIPExtensionNotify_UpdateInfoSubKey_InviterIdKey"
  1084. #define TUICore_TUICore_TUIVoIPExtensionNotify_UpdateInfoSubKey_InviteeListKey @"TUICore_TUICore_TUIVoIPExtensionNotify_UpdateInfoSubKey_InviteeListKey"
  1085. #define TUICore_TUICore_TUIVoIPExtensionNotify_UpdateInfoSubKey_GroupIDKey @"TUICore_TUICore_TUIVoIPExtensionNotify_UpdateInfoSubKey_GroupIDKey"
  1086. /////////////////////////////////////////////////////////////////////////////////
  1087. //
  1088. // TUIOfflinePush
  1089. //
  1090. /////////////////////////////////////////////////////////////////////////////////
  1091. /**
  1092. * Set certificate IDs for VoIP
  1093. */
  1094. #define TUIOfflinePushCertificateIDForVoIP(value) \
  1095. -(int)push_certificateIDForVoIP { \
  1096. return value; \
  1097. }
  1098. /**
  1099. * Set certificate IDs for APNs
  1100. */
  1101. #define TUIOfflinePushCertificateIDForAPNS(value) \
  1102. -(int)push_certificateIDForAPNS { \
  1103. return value; \
  1104. }
  1105. /**
  1106. * Set TPNS configuration information
  1107. */
  1108. #define TUIOfflinePushConfigForTPNS(access_id, access_key, tpn_domain) \
  1109. -(void)push_accessID : (int *)accessID accessKey : (NSString **)accessKey domain : (NSString **)domain { \
  1110. *accessID = access_id; \
  1111. *accessKey = access_key; \
  1112. *domain = tpn_domain; \
  1113. }
  1114. #endif /* THeader_h */