MBQuadDetectorSubview
Objective-C
@protocol MBQuadDetectorSubview <NSObject>
Swift
protocol MBQuadDetectorSubview : NSObjectProtocol
Protocol for processing MBDisplayableQuadDetection. Subviews implementing this protocol process and draw quad on the screen (e.g. viewfinder drawing document outlining)
-
This method should be called when MBDisplayableQuadDetection is obtained and quad need to be drawn/redrawn.
Declaration
Objective-C
- (void)detectionFinishedWithDisplayableQuad: (MBDisplayableQuadDetection *)displayableQuadDetection;
Swift
func detectionFinished(withDisplayableQuad displayableQuadDetection: MBDisplayableQuadDetection!)
-
This method should be called when MBDisplayableQuadDetection is obtained and quad need to be drawn/redrawn with camera preview zoom enabled by setting previewZoomScale property on cameraSettings.
Declaration
Objective-C
- (void)detectionFinishedWithDisplayableQuad: (MBDisplayableQuadDetection *)displayableQuadDetection originalRectangle:(CGRect)originalRect relativeRectangle:(CGRect)relativeRectangle;
Swift
func detectionFinished(withDisplayableQuad displayableQuadDetection: MBDisplayableQuadDetection!, originalRectangle originalRect: CGRect, relativeRectangle: CGRect)