TUIChatPopContextController.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // TUIChatPopContextController.h
  3. // TUIChat
  4. //
  5. // Created by wyl on 2022/10/24.
  6. // Copyright © 2023 Tencent. All rights reserved.
  7. //
  8. #import <TIMCommon/TUIMessageCell.h>
  9. #import <TIMCommon/TUIMessageCellData.h>
  10. #import <UIKit/UIKit.h>
  11. #import "TUIChatPopContextExtionView.h"
  12. NS_ASSUME_NONNULL_BEGIN
  13. typedef NS_ENUM(NSUInteger, BlurEffectStyle) {
  14. BlurEffectStyleLight,
  15. BlurEffectStyleExtraLight,
  16. BlurEffectStyleDarkEffect,
  17. };
  18. @interface TUIChatPopContextController : UIViewController
  19. @property(nonatomic, strong) Class alertCellClass;
  20. @property(nonatomic, strong) TUIMessageCellData *alertViewCellData;
  21. @property(nonatomic, assign) CGRect originFrame;
  22. @property(copy, nonatomic) void (^viewWillShowHandler)(TUIMessageCell *alertView);
  23. @property(copy, nonatomic) void (^viewDidShowHandler)(TUIMessageCell *alertView);
  24. // dismiss controller completed block
  25. @property(nonatomic, copy) void (^dismissComplete)(void);
  26. @property(nonatomic, copy) void (^reactClickCallback)(NSString *faceName);
  27. @property(nonatomic, strong) NSMutableArray<TUIChatPopContextExtionItem *> *items;
  28. - (void)setBlurEffectWithView:(UIView *)view;
  29. - (void)blurDismissViewControllerAnimated:(BOOL)animated completion:(void (^__nullable)(BOOL finished))completion;
  30. - (void)updateExtionView;
  31. @end
  32. NS_ASSUME_NONNULL_END