// // OCBarrageContentView.h // TestApp // // Created by QMTV on 2017/8/22. // Copyright © 2017年 LFC. All rights reserved. // #import #import "YOUPAIOCBarrageCell.h" NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSInteger, OCBarrageRenderStatus) { OCBarrageRenderStoped = 0, OCBarrageRenderStarted, OCBarrageRenderPaused }; @interface YOUPAIOCBarrageRenderView : UIView { NSMutableArray *_animatingCells; NSMutableArray *_idleCells; dispatch_semaphore_t _animatingCellsLock; dispatch_semaphore_t _idleCellsLock; dispatch_semaphore_t _trackInfoLock; YOUPAIOCBarrageCell *_lastestCell; UIView *_lowPositionView; UIView *_middlePositionView; UIView *_highPositionView; UIView *_veryHighPositionView; BOOL _autoClear; OCBarrageRenderStatus _renderStatus; NSMutableDictionary *_trackNextAvailableTime; } @property (nonatomic, strong, readonly) NSMutableArray *animatingCells; @property (nonatomic, strong, readonly) NSMutableArray *idleCells; @property (nonatomic, assign) OCBarrageRenderPositionStyle renderPositionStyle; @property (nonatomic, assign, readonly) OCBarrageRenderStatus renderStatus; - (nullable YOUPAIOCBarrageCell *)dequeueReusableCellWithClass:(Class)barrageCellClass; - (void)youpaiffireBarrageCell:(YOUPAIOCBarrageCell *)barrageCell; - (void)start; - (void)pause; - (void)resume; - (void)stop; @end NS_ASSUME_NONNULL_END