---
title: VNDocumentCameraViewControllerDelegate
framework: visionkit
role: symbol
role_heading: Protocol
path: visionkit/vndocumentcameraviewcontrollerdelegate
---

# VNDocumentCameraViewControllerDelegate

A delegate protocol through which the document camera returns its scanned results.

## Declaration

```swift
protocol VNDocumentCameraViewControllerDelegate : NSObjectProtocol
```

## Overview

Overview Your app is responsible for dismissing the document camera in all delegate callback methods.

## Topics

### Determining scan results

- [documentCameraViewController(_:didFinishWith:)](visionkit/vndocumentcameraviewcontrollerdelegate/documentcameraviewcontroller(_:didfinishwith:).md)
- [documentCameraViewControllerDidCancel(_:)](visionkit/vndocumentcameraviewcontrollerdelegate/documentcameraviewcontrollerdidcancel(_:).md)
- [documentCameraViewController(_:didFailWithError:)](visionkit/vndocumentcameraviewcontrollerdelegate/documentcameraviewcontroller(_:didfailwitherror:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Document scanning through the camera

- [Structuring recognized text on a document](visionkit/structuring-recognized-text-on-a-document.md)
- [VNDocumentCameraViewController](visionkit/vndocumentcameraviewcontroller.md)
- [VNDocumentCameraScan](visionkit/vndocumentcamerascan.md)
