onPostCapture

Description

This event is fired after an image or a document is captured, and the image/document is stored in the buffer.

Syntax

- (void) onPostCapture: (id) sender
image:(DcsImage*)image

Parameters

ID sender: The current DcsUIVideoView object that triggers the event.
DcsImage* image: The captured DcsDocument or DcsImage object. If the capture mode is DME_DOCUMENT, then it's a DcsDocument object. If the capture mode is DME_IMAGE, then it's a DcsImage object.

Return value

void

Example


@interface ViewController ()<DcsUIVideoViewDelegate>{
    DcsView *dcsView;
}
@end
 
@implementation ViewController
 
- (void)viewDidLoad {
    [super viewDidLoad];
     
    dcsView = [[DcsView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
 
    dcsView.videoView.delegate = self; 
    [self.view addSubview:dcsView];
}

- (void) onPostCapture:(id)sender image:(DcsImage*)image{
     
}

@end      
Is this page helpful?

Leave a Reply

Your email address will not be published.