onCaptureFailure

Description

This event is fired when it fails to capture an image or a document.

Syntax

- (void) onCaptureFailure: (id) sender
exception: (DcsException *) exception

Parameters

ID sender: The current DcsUIVideoView object that triggers the event.
(DcsException *) exception: The exception.

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) onCaptureFailure:(id)sender exception:(DcsException *)exception{
     
}

@end