MBCQuadDetectorSubview
Objective-C
@protocol MBCQuadDetectorSubview <NSObject>
Swift
protocol MBCQuadDetectorSubview : NSObjectProtocol
Protocol for processing MBCDisplayableQuadDetection. Subviews implementing this protocol process and draw quad on the screen (e.g. viewfinder drawing document outlining)
-
This method should be called when MBCDisplayableQuadDetection is obtained and quad need to be drawn/redrawn.
Declaration
Objective-C
- (void)detectionFinishedWithDisplayableQuad: (MBCDisplayableQuadDetection *)displayableQuadDetection;
Swift
func detectionFinished(withDisplayableQuad displayableQuadDetection: MBCDisplayableQuadDetection!)
-
This method should be called when MBCDisplayableQuadDetection 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: (MBCDisplayableQuadDetection *)displayableQuadDetection originalRectangle:(CGRect)originalRect relativeRectangle:(CGRect)relativeRectangle;
Swift
func detectionFinished(withDisplayableQuad displayableQuadDetection: MBCDisplayableQuadDetection!, originalRectangle originalRect: CGRect, relativeRectangle: CGRect)