onCaptureTapped

Description

The event is fired when the capture tool item is clicked.

Syntax

func onCaptureTapped(sender:Any)

Parameters

sender:Any The current DcsUIVideoView object that triggers the event.

Return value

Void

Example

class ViewController: UIViewController, DcsUIVideoViewDelegate {
override func viewDidLoad() {
        super.viewDidLoad()
    }
func onDocumentDetected(_ sender: Any!, document: DcsDocument!) {
        print("Document is detected")
    }
    
    func onCaptureTapped(_ sender: Any!) {
        print("Capture is tapped")
    }
    
    func onCancelTapped(_ sender: Any!) {
        print("Cancel is tapped")
    }
    
    func onPreCapture(_ sender: Any!) -> Bool {
        print("This event is fired before capture")
        return true
    }
    
    func onPostCapture(_ sender: Any!) {
        print("This event is fired after capture")
    }
    
    func onCaptureFailure(_ sender: Any!, exception: DcsException!) {
        print("Capture failed")
    }
}
Is this page helpful?

Leave a Reply

Your email address will not be published.