TUIMessageReadViewController.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Created by Tencent on 2023/06/09.
  2. // Copyright © 2023 Tencent. All rights reserved.
  3. /**
  4. *
  5. * This file mainly declares the controller class that jumps to the read member list after clicking the read label of the group chat message
  6. *
  7. * The TUIMessageReadSelectView class defines a tab-like view in the read list. Currently only used in TUIMessageReadViewController.
  8. * TUIMessageReadSelectViewDelegate Callback for clicked view event. Currently implemented by TUIMessageReadViewController to switch between read and unread
  9. * lists.
  10. *
  11. * The TUIMessageReadViewController class implements the UI and logic for the read member list.
  12. * TUIMessageReadViewControllerDelegate callback click member list cell event.
  13. */
  14. #import <TIMCommon/TUIMessageCellData.h>
  15. #import <UIKit/UIKit.h>
  16. #import "TUIChatDefine.h"
  17. NS_ASSUME_NONNULL_BEGIN
  18. @class TUIMessageReadSelectView;
  19. @protocol TUIMessageReadSelectViewDelegate <NSObject>
  20. @optional
  21. - (void)messageReadSelectView:(TUIMessageReadSelectView *)view didSelectItemTag:(TUIMessageReadViewTag)tag;
  22. @end
  23. @interface TUIMessageReadSelectView : UIView
  24. @property(nonatomic, weak) id<TUIMessageReadSelectViewDelegate> delegate;
  25. @property(nonatomic, assign) BOOL selected;
  26. - (instancetype)initWithTitle:(NSString *)title viewTag:(TUIMessageReadViewTag)tag selected:(BOOL)selected;
  27. @end
  28. @class TUIMessageDataProvider;
  29. @interface TUIMessageReadViewController : UIViewController
  30. @property(copy, nonatomic) void (^viewWillDismissHandler)(void);
  31. - (instancetype)initWithCellData:(TUIMessageCellData *)data
  32. dataProvider:(TUIMessageDataProvider *)dataProvider
  33. showReadStatusDisable:(BOOL)showReadStatusDisable
  34. c2cReceiverName:(NSString *)name
  35. c2cReceiverAvatar:(NSString *)avatarUrl;
  36. @end
  37. NS_ASSUME_NONNULL_END