RGLMaskView
Objective-C
@interface RGLMaskView : UIView
- (instancetype _Nonnull)initWithOffset:(CGFloat)offset
cornerRadius:(CGFloat)radius
lineWidth:(CGFloat)lineWidth
shapeType:(RGLCameraFrameShapeType)shapeType;
@property(nonatomic, weak, nullable) id<RGLMaskViewDataSource> dataSource;
@property(nonatomic, strong) CAShapeLayer* _Nullable maskLayer;
@property(nonatomic) CGFloat offset;
@property(nonatomic) CGFloat cornerRadius;
@property(nonatomic) CGFloat lineWidth;
@property(nonatomic) RGLCameraFrameShapeType frameShapeType;
-(void)setTorchModeOn:(BOOL)mode;
@end
Swift
class MaskView : UIView
Undocumented
-
Undocumented
Declaration
Objective-C
- (instancetype _Nonnull)initWithOffset:(CGFloat)offset cornerRadius:(CGFloat)radius lineWidth:(CGFloat)lineWidth shapeType:(RGLCameraFrameShapeType)shapeType;Swift
init(offset: CGFloat, cornerRadius radius: CGFloat, lineWidth: CGFloat, shapeType: CameraFrameShapeType) -
Undocumented
Declaration
Objective-C
@property(nonatomic, weak, nullable) id<RGLMaskViewDataSource> dataSourceSwift
weak var dataSource: RGLMaskViewDataSource? { get set } -
Undocumented
Declaration
Objective-C
@property(nonatomic, strong) CAShapeLayer* _Nullable maskLayerSwift
var maskLayer: CAShapeLayer? { get set } -
Undocumented
Declaration
Objective-C
@property(nonatomic) CGFloat offsetSwift
var offset: CGFloat { get set } -
Undocumented
Declaration
Objective-C
@property(nonatomic) CGFloat cornerRadiusSwift
var cornerRadius: CGFloat { get set } -
Undocumented
Declaration
Objective-C
@property(nonatomic) CGFloat lineWidthSwift
var lineWidth: CGFloat { get set } -
Undocumented
Declaration
Objective-C
@property(nonatomic) RGLCameraFrameShapeType frameShapeTypeSwift
var frameShapeType: CameraFrameShapeType { get set } -
Undocumented
Declaration
Objective-C
-(void)setTorchModeOn:(BOOL)mode;Swift
func setTorchModeOn(_ mode: Bool)