TUIConversationTableView.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // TUIConversationTableView.h
  3. // TUIConversation
  4. //
  5. // Created by xiangzhang on 2023/3/17.
  6. // Copyright © 2023 Tencent. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "TUIConversationCell.h"
  10. #import "TUIConversationListControllerListener.h"
  11. #import "TUIConversationListDataProvider.h"
  12. NS_ASSUME_NONNULL_BEGIN
  13. static NSString *gConversationCell_ReuseId = @"TConversationCell";
  14. typedef void (^TUIConversationMarkUnreadCountChanged)(NSInteger markUnreadCount, NSInteger markHideUnreadCount);
  15. @protocol TUIConversationTableViewDelegate <NSObject>
  16. @optional
  17. - (void)tableViewDidScroll:(CGFloat)offsetY;
  18. - (void)tableViewDidSelectCell:(TUIConversationCellData *)data;
  19. - (void)tableViewDidShowAlert:(UIAlertController *)ac;
  20. @end
  21. @interface TUIConversationTableView : UITableView
  22. @property(nonatomic, weak) id<TUIConversationTableViewDelegate> convDelegate;
  23. @property(nonatomic, strong) TUIConversationListBaseDataProvider *dataProvider;
  24. @property(nonatomic, copy) TUIConversationMarkUnreadCountChanged unreadCountChanged;
  25. @property(nonatomic, strong) NSString *tipsMsgWhenNoConversation;
  26. @property(nonatomic, assign) BOOL disableMoreActionExtension;
  27. - (void)tableViewDidSelectCell:(TUIConversationCellData *)data;
  28. - (void)tableViewFillCell:(TUIConversationCell *)cell withData:(TUIConversationCellData *)data;
  29. @end
  30. NS_ASSUME_NONNULL_END