ScanViewConfiguration

open class ScanViewConfiguration : NSObject

扫码视图配置

  • 扫描线,默认为:nil

    Declaration

    Swift

    open var scanline: String?
  • 扫描线图片,默认为:nil

    Declaration

    Swift

    open var scanlineImage: UIImage?
  • 扫描线每次移动的步长,默认为:3.5f

    Declaration

    Swift

    open var scanlineStep: CGFloat
  • 扫描线是否执行逆动画,默认为:NO

    Declaration

    Swift

    open var autoreverses: Bool
  • 扫描线是否从扫描框顶部开始扫描,默认为:NO

    Declaration

    Swift

    open var isFromTop: Bool
  • 背景色,默认为:[[UIColor blackColor] colorWithAlphaComponent:0.5]

    Declaration

    Swift

    open var color: UIColor
  • 是否需要辅助扫描框,默认为:NO

    Declaration

    Swift

    open var isShowBorder: Bool
  • 辅助扫描框的颜色,默认为:[UIColor whiteColor]

    Declaration

    Swift

    open var borderColor: UIColor
  • 辅助扫描框的宽度,默认为:0.2f

    Declaration

    Swift

    open var borderWidth: CGFloat
  • 辅助扫描边角位置,默认为:default

    Declaration

    Swift

    open var cornerLocation: ScanCornerLoaction
  • 辅助扫描边角颜色,默认为:[UIColor greenColor]

    Declaration

    Swift

    open var cornerColor: UIColor
  • 辅助扫描边角宽度,默认为:2.0f

    Declaration

    Swift

    open var cornerWidth: CGFloat
  • 辅助扫描边角长度,默认为:20.0f

    Declaration

    Swift

    open var cornerLength: CGFloat