<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VisionKit",
  "identifier" : "/documentation/VisionKit/VNDocumentCameraViewControllerDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "VisionKit"
    ],
    "preciseIdentifier" : "c:objc(pl)VNDocumentCameraViewControllerDelegate"
  },
  "title" : "VNDocumentCameraViewControllerDelegate"
}
-->

# VNDocumentCameraViewControllerDelegate

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

```
protocol VNDocumentCameraViewControllerDelegate : NSObjectProtocol
```

## Overview

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

## Topics

### Determining scan results

[`-  documentCameraViewController:didFinishWithScan:`](/documentation/VisionKit/VNDocumentCameraViewControllerDelegate/documentCameraViewController(_:didFinishWith:))

Tells the delegate that the user successfully saved a scanned document from the document camera.

[`-  documentCameraViewControllerDidCancel:`](/documentation/VisionKit/VNDocumentCameraViewControllerDelegate/documentCameraViewControllerDidCancel(_:))

Tells the delegate that the user canceled out of the document scanner camera.

[`-  documentCameraViewController:didFailWithError:`](/documentation/VisionKit/VNDocumentCameraViewControllerDelegate/documentCameraViewController(_:didFailWithError:))

Tells the delegate that document scanning failed while the camera view controller was active.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)