OCBarrageDescriptor.h 1.1 KB

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