TUIEmojiConfig.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // TUIEmojiConfig.h
  3. // TUIEmojiPlugin
  4. //
  5. // Created by wyl on 2023/11/13.
  6. // Copyright © 2023 Tencent. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <TIMCommon/TIMCommonModel.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. @class TUIFaceGroup;
  12. @interface TUIEmojiConfig : NSObject
  13. + (TUIEmojiConfig *)defaultConfig;
  14. /**
  15. * In respect for the copyright of the emoji design, the Chat Demo/TUIKit project does not include the cutouts of large emoji elements. Please replace them
  16. * with your own designed or copyrighted emoji packs before the official launch for commercial use. The default small yellow face emoji pack is copyrighted by
  17. * Tencent Cloud and can be authorized for a fee. If you wish to obtain authorization, please submit a ticket to contact us.
  18. *
  19. * submit a ticket url:https://console.cloud.tencent.com/workorder/category?level1_id=29&level2_id=40&source=14&data_title=%E5%8D%B3%E6%97%B6%E9%80%9A%E4%BF%A1%20IM&step=1 (China mainland)
  20. * submit a ticket url:https://console.tencentcloud.com/workorder/category?level1_id=29&level2_id=40&source=14&data_title=Chat&step=1 (Other regions)
  21. */
  22. @property(nonatomic, strong) NSArray<TUIFaceGroup *> *faceGroups;
  23. /**
  24. * The list of emoticons displayed after long-pressing the message on the chat interface
  25. */
  26. @property(nonatomic, strong) NSArray<TUIFaceGroup *> *chatPopDetailGroups;
  27. @property(nonatomic, strong) NSArray<TUIFaceGroup *> *chatContextEmojiDetailGroups;
  28. - (void)appendFaceGroup:(TUIFaceGroup *)faceGroup;
  29. @end
  30. @interface TUIEmojiConfig (defaultFace)
  31. - (TUIFaceGroup *)getChatPopMenuRecentQueue;
  32. - (void)updateEmojiGroups;
  33. - (void)updateRecentMenuQueue:(NSString *)faceName;
  34. @end
  35. NS_ASSUME_NONNULL_END