onDocumentDetected

Description

This event is fired when a document is detected.

Syntax

- (void)onDocumentDetected:(id)sender document:(DcsDocument*)document

Parameters

ID sender: The current DcsUIVideoView object that triggers the event.
(DcsDocument *) document: The detected document.

Return value

void

Remarks

The event is only valid under the document mode.

Examples


@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) onDocumentDetected:(id)sender document:(DcsDocument *) document{
    NSLog(@"onDocumentDetected fired");
    NSLog(@"sender: %@",sender);
}

@end
Is this page helpful?

Leave a Reply

Your email address will not be published.