You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
@method start:
@param supView
The incoming parent view.
@param scanConfig
ScanConfig (Default: ScanConfig()).
@param scanType
The supported recognizable scanning types are the same as the system API by default.
@param scanHandler
The scan result callback
@discussion
None
*/
@available(iOS 13.0,*)@objcfunc start(supView:UIView, scanConfig:ScanConfig, scanType:[AVMetadataObject.ObjectType], scanHandler:((ScanResult)->Void)?)
/**
@method scanLimit:
@param bottomView
A view from the bottom of the scan box to the bottom area of the parent view.
@discussion
None
*/
@available(iOS 13.0,*)@objcoptionalfunc scanLimit(_ bottomView:UIView)
/**
@method scanUnrestrained:
@param fullView
A view that is the same size as the parent view.
@discussion
None
*/
@available(iOS 13.0,*)@objc optional func scanUnrestrained(_ fullView:UIView)
/**
@method scanCaptureOutput:
@param brightnessValue
A brightness value.
@discussion
None
*/
@available(iOS 13.0,*)@objc optional func scanCaptureOutput(_ brightnessValue:Double)
/**
@method scanMetadataOutput:
@param values
An array of scan results.
@discussion
None
*/
@available(iOS 13.0,*)@objc optional func scanMetadataOutput(_ values:Array<ScanResult>)
3)闪光灯
/**
@method torchFlash:
@param open
A boolean value, the default is false.
@discussion
None
*/
@available(iOS 13.0,*)@objcoptionalfunc torchFlash(open:Bool)
4)识别照片内容api(可用于识别图片中二维码内容)
/**
@method detector:
@param image
A valid picture.
@param ofType
The type is used to specify the detection intent. (Default: CIDetectorTypeQRCode).
@param context
The context argument specifies the CIContext to be used to operate on the image. may be nil. (Default: nil).
@param options
The options parameter lets you optinally specify a accuracy / performance tradeoff. can be nil or an empty dictionary. (Default: [[CIDetectorAccuracy: CIDetectorAccuracyHigh]]).
@result
An array of CIFeature instances in the given image.
@discussion
None
*/
@available(iOS 13.0,*)@objcoptionalfunc detector(image:UIImage, ofType:String, context:CIContext?, options:[String:Any]?)->[CIFeature]?