Files
featherVoice/QXLive/Room(房间)/View/礼物特效/QXGiftDisplayView.h

28 lines
739 B
C
Raw Normal View History

2025-10-20 20:05:55 +08:00
//
// QXQXGiftDisplayView.h
// QXLive
//
// Created by 启星 on 2025/10/20.
//
#import <UIKit/UIKit.h>
@class QXGiftDisplayView;
@protocol QXGiftDisplayViewDelegate <NSObject>
- (void)QXGiftDisplayViewDidFinishAnimation:(QXGiftDisplayView *)view;
@end
@interface QXGiftDisplayView : UIView
@property (nonatomic, weak) id<QXGiftDisplayViewDelegate> delegate;
@property (nonatomic, assign) BOOL isAnimating; // 是否正在动画
@property (nonatomic, strong) QXRoomChatListModel *currentGift; // 当前显示的礼物
// 显示礼物
- (void)showGift:(QXRoomChatListModel *)gift;
// 更新礼物数量
- (void)updateGiftCount:(NSInteger)count;
// 立即结束动画(用于队列管理)
- (void)finishAnimationImmediately;
@end