TUIChatDefine.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. //
  2. // TUIChatDefine.h
  3. // Pods
  4. //
  5. // Created by xiangzhang on 2022/10/14.
  6. // Copyright © 2023 Tencent. All rights reserved.
  7. //
  8. #ifndef TUI_COMPONENTS_IOS_TUICHAT_COMMONMODEL_TUICHATDEFINE_H_
  9. #define TUI_COMPONENTS_IOS_TUICHAT_COMMONMODEL_TUICHATDEFINE_H_
  10. static NSString* const kMemberCellReuseId = @"kMemberCellReuseId";
  11. typedef void (^TUIImageMessageDownloadCallback)(void);
  12. typedef void (^TUIVideoMessageDownloadCallback)(void);
  13. typedef void (^TUIReplyAsyncLoadFinish)(void);
  14. typedef void (^TUIInputPreviewBarCallback)(void);
  15. typedef void (^TUIReplyQuoteAsyncLoadFinish)(void);
  16. typedef void (^TUIChatSelectAllContentCallback)(BOOL);
  17. typedef void (^TUIReferenceSelectAllContentCallback)(BOOL);
  18. typedef void (^TUIReplySelectAllContentCallback)(BOOL);
  19. typedef NS_ENUM(NSInteger, TUIMultiResultOption) {
  20. /**
  21. *
  22. * Get all selected results
  23. */
  24. TUIMultiResultOptionAll = 0,
  25. /**
  26. *
  27. * Filter out data that does not support forwarding
  28. */
  29. TUIMultiResultOptionFiterUnsupportRelay = 1 << 0,
  30. };
  31. typedef NS_ENUM(NSInteger, TUIMessageReadViewTag) {
  32. TUIMessageReadViewTagUnknown = 0, // unknown
  33. TUIMessageReadViewTagRead, // read group members
  34. TUIMessageReadViewTagUnread, // unread group members
  35. TUIMessageReadViewTagReadDisable, // disable read group members
  36. TUIMessageReadViewTagC2C, // c2c member
  37. };
  38. typedef NS_ENUM(NSUInteger, InputStatus) {
  39. Input_Status_Input,
  40. Input_Status_Input_Face,
  41. Input_Status_Input_More,
  42. Input_Status_Input_Keyboard,
  43. Input_Status_Input_Talk,
  44. Input_Status_Input_Camera,
  45. };
  46. typedef NS_ENUM(NSUInteger, RecordStatus) {
  47. Record_Status_TooShort,
  48. Record_Status_TooLong,
  49. Record_Status_Recording,
  50. Record_Status_Cancel,
  51. };
  52. typedef NS_ENUM(NSInteger, TUIChatSmallTongueType) {
  53. TUIChatSmallTongueType_None,
  54. TUIChatSmallTongueType_ScrollToBoom,
  55. TUIChatSmallTongueType_ReceiveNewMsg,
  56. TUIChatSmallTongueType_SomeoneAt,
  57. };
  58. #define TUITencentCloudHomePageCN @"https://cloud.tencent.com/document/product/269/68228"
  59. #define TUITencentCloudHomePageEN @"https://www.tencentcloud.com/document/product/1047/45913"
  60. #define TUIChatSendMessageNotification @"TUIChatSendMessageNotification"
  61. #define TUIChatSendMessageWithoutUpdateUINotification @"TUIChatSendMessageWithoutUpdateUINotification"
  62. #define TUIChatInsertMessageWithoutUpdateUINotification @"TUIChatInsertMessageWithoutUpdateUINotification"
  63. #endif // TUI_COMPONENTS_IOS_TUICHAT_COMMONMODEL_TUICHATDEFINE_H_