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> dataSource

    Swift

    weak var dataSource: RGLMaskViewDataSource? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic, strong) CAShapeLayer* _Nullable maskLayer

    Swift

    var maskLayer: CAShapeLayer? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic) CGFloat offset

    Swift

    var offset: CGFloat { get set }
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic) CGFloat cornerRadius

    Swift

    var cornerRadius: CGFloat { get set }
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic) CGFloat lineWidth

    Swift

    var lineWidth: CGFloat { get set }
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic) RGLCameraFrameShapeType frameShapeType

    Swift

    var frameShapeType: CameraFrameShapeType { get set }
  • Undocumented

    Declaration

    Objective-C

    -(void)setTorchModeOn:(BOOL)mode;

    Swift

    func setTorchModeOn(_ mode: Bool)