TUIMessageController.h 1014 B

123456789101112131415161718192021222324252627282930
  1. // Created by Tencent on 2023/06/09.
  2. // Copyright © 2023 Tencent. All rights reserved.
  3. #import <TIMCommon/TIMDefine.h>
  4. #import "TUIBaseMessageController.h"
  5. NS_ASSUME_NONNULL_BEGIN
  6. @interface TUIMessageController : TUIBaseMessageController
  7. /**
  8. * Highlight text
  9. * In the search scenario, when highlightKeyword is not empty and matches @locateMessage, opening the chat session page will highlight the current cell
  10. */
  11. @property(nonatomic, copy) NSString *hightlightKeyword;
  12. /**
  13. * Locate message
  14. * In the search scenario, when locateMessage is not empty, opening the chat session page will automatically scroll to here
  15. */
  16. @property(nonatomic, strong) V2TIMMessage *locateMessage;
  17. @property(nonatomic, strong) V2TIMMessage *C2CIncomingLastMsg;
  18. - (void)locateAssignMessage:(V2TIMMessage *)message matchKeyWord:(NSString *)keyword;
  19. - (void)findMessages:(NSArray<NSString *> *)msgIDs callback:(void (^)(BOOL success, NSString *desc, NSArray<V2TIMMessage *> *messages))callback;
  20. @end
  21. NS_ASSUME_NONNULL_END