<!--
{
  "availability" : [
    "tvOS: 13.0.0 - 18.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "TVMLKit",
  "identifier" : "/documentation/TVMLKit/TVDocumentViewControllerDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "TVMLKit"
    ],
    "preciseIdentifier" : "c:objc(pl)TVDocumentViewControllerDelegate"
  },
  "title" : "TVDocumentViewControllerDelegate"
}
-->

# TVDocumentViewControllerDelegate

Methods to manage updates, events, and errors from the document view controller.

```
protocol TVDocumentViewControllerDelegate : NSObjectProtocol
```

## Topics

### Managing Document Updates

[`documentViewControllerWillUpdate(_:)`](/documentation/TVMLKit/TVDocumentViewControllerDelegate/documentViewControllerWillUpdate(_:))

Tells the delegate that the document will be updated.

[`documentViewControllerDidUpdate(_:)`](/documentation/TVMLKit/TVDocumentViewControllerDelegate/documentViewControllerDidUpdate(_:))

Tells the delegate that the document has been updated.

[`documentViewController(_:didUpdateWithContext:)`](/documentation/TVMLKit/TVDocumentViewControllerDelegate/documentViewController(_:didUpdateWithContext:))

Tells the delegate that the document has been updated with a specified context.

### Responding to Errors

[`documentViewController(_:didFailUpdateWithError:)`](/documentation/TVMLKit/TVDocumentViewControllerDelegate/documentViewController(_:didFailUpdateWithError:))

Tells the delegate that the document failed to update.

### Handling Events

[`documentViewController(_:handleEvent:with:)`](/documentation/TVMLKit/TVDocumentViewControllerDelegate/documentViewController(_:handleEvent:with:))

Handles events natively from document view controllers.



---

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)