12345678910111213141516171819202122232425262728293031 |
- //
- // OCBarrageDescriptor.h
- // TestApp
- //
- // Created by QMTV on 2017/8/23.
- // Copyright © 2017年 LFC. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import <UIKit/UIKit.h>
- #import "OCBarrageHeader.h"
- NS_ASSUME_NONNULL_BEGIN
- @interface OCBarrageDescriptor : NSObject
- @property (nonatomic, assign, nullable) Class barrageCellClass;
- @property (nonatomic, assign) OCBarragePositionPriority positionPriority;//显示位置normal型的渲染在low型的上面, height型的渲染在normal上面
- @property (nonatomic, assign) CGFloat animationDuration;
- @property (nonatomic, copy, nullable) OCBarrageTouchAction touchAction;
- @property (nonatomic, strong, nullable) UIColor *borderColor; // Default is no border
- @property (nonatomic, assign) CGFloat borderWidth; // Default is 0
- @property (nonatomic, assign) CGFloat cornerRadius; // Default is 8
- @property (nonatomic, assign) NSRange renderRange;//渲染范围, 最终渲染出来的弹幕的Y坐标最小不小于renderRange.location, 最大不超过renderRange.length-barrageCell.height
- @end
- NS_ASSUME_NONNULL_END
|