MOGetRedPacketView.h 758 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // MOGetRedPacketView.h
  3. // MiMoLive
  4. //
  5. // Created by SuperC on 2024/6/17.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import "MOGetRedPacketCell.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface MOGetRedPacketView : UIView
  11. /** 红包对象数据 */
  12. @property (nonatomic, strong) MORedEnvelopesListData *redData;
  13. @property (nonatomic, copy) NSString *roomId;
  14. @property (nonatomic, copy) NSString *anchorId;//主播id
  15. @property (nonatomic, copy) void (^openRedPacketBlock) (MOReceivingBaseData *receiveData, MORedEnvelopesInfo *redInfo);
  16. @property (nonatomic, copy) void (^dismissViewBlock) (void);
  17. + (instancetype)moGetRedPacketView;
  18. - (void)showGetRedPacketView;
  19. - (void)dismissGetRedPacketView;
  20. /// 1秒触发一次
  21. - (void)oneSecondPassed;
  22. @end
  23. NS_ASSUME_NONNULL_END