MORedPacketCustomView.h 683 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // MORedPacketCustomView.h
  3. // MiMoLive
  4. //
  5. // Created by MiMo on 2025/5/16.
  6. //
  7. #import <UIKit/UIKit.h>
  8. @class MORedSendConfigs;
  9. NS_ASSUME_NONNULL_BEGIN
  10. typedef NS_ENUM(NSUInteger, CustomRedPacketType){
  11. CustomRedPacketTypeAmount, //自定义金额
  12. CustomRedPacketTypeQuantity, // 自定义数量
  13. };
  14. @interface MORedPacketCustomView : UIView
  15. @property (nonatomic, assign) CustomRedPacketType type;
  16. @property (nonatomic, strong) MORedSendConfigs *config;
  17. @property (nonatomic, copy) void (^confirmBlock)(NSInteger result);
  18. @property (nonatomic, copy) void (^cancelBlock) (void);
  19. ///view展示
  20. - (void)show;
  21. ///view隐藏
  22. - (void)dismiss;
  23. @end
  24. NS_ASSUME_NONNULL_END