28 lines
739 B
C
28 lines
739 B
C
|
|
//
|
||
|
|
// 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
|