TUIMessageMultiChooseView.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // Created by Tencent on 2023/06/09.
  2. // Copyright © 2023 Tencent. All rights reserved.
  3. #import <UIKit/UIKit.h>
  4. NS_ASSUME_NONNULL_BEGIN
  5. @class TUIMessageMultiChooseView;
  6. @protocol TUIMessageMultiChooseViewDelegate <NSObject>
  7. /**
  8. * Callback when the cancel button on the multi-select message panel is clicked
  9. */
  10. - (void)messageMultiChooseViewOnCancelClicked:(TUIMessageMultiChooseView *)multiChooseView;
  11. /**
  12. * Callback for when the forward button on the multi-select message panel is clicked
  13. */
  14. - (void)messageMultiChooseViewOnRelayClicked:(TUIMessageMultiChooseView *)multiChooseView;
  15. /**
  16. * Callback for when the delete button on the multi-select message panel is clicked
  17. */
  18. - (void)messageMultiChooseViewOnDeleteClicked:(TUIMessageMultiChooseView *)multiChooseView;
  19. @end
  20. @interface TUIMessageMultiChooseView : UIView
  21. @property(nonatomic, weak) id<TUIMessageMultiChooseViewDelegate> delegate;
  22. #pragma mark - Top toolbar
  23. /**
  24. * The top toolbar, showing shortcut operations such as cancel
  25. */
  26. @property(nonatomic, strong) UIView *toolView;
  27. /**
  28. * Top toolbar element: Cancel button
  29. */
  30. @property(nonatomic, strong) UIButton *cancelButton;
  31. /**
  32. * Top toolbar element: title
  33. */
  34. @property(nonatomic, strong) UILabel *titleLabel;
  35. #pragma mark - Bottom menu bar
  36. /**
  37. * The bottom menu bar, shows the operation menu after multiple selection messages, such as forwarding, deleting, etc.
  38. */
  39. @property(nonatomic, strong) UIView *menuView;
  40. /**
  41. * Bottom menu bar element: Forward button
  42. */
  43. @property(nonatomic, strong) UIButton *relayButton;
  44. /**
  45. * Bottom menu bar element: Delete button
  46. */
  47. @property(nonatomic, strong) UIButton *deleteButton;
  48. @end
  49. NS_ASSUME_NONNULL_END