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

# UIDocumentMenuDelegate

A set of methods that you must implement to track user interactions with a document menu view controller.

```
@MainActor protocol UIDocumentMenuDelegate : NSObjectProtocol
```

## Overview

The document menu calls the methods of this protocol when the user selects a document picker or dismisses the menu. If the user selects a document picker, set the picker’s delegate and present it.

## Topics

### Responding to user actions

[`-  documentMenu:didPickDocumentPicker:`](/documentation/UIKit/UIDocumentMenuDelegate/documentMenu(_:didPickDocumentPicker:))

Tells the delegate that the user has selected a document picker from the menu.

[`-  documentMenuWasCancelled:`](/documentation/UIKit/UIDocumentMenuDelegate/documentMenuWasCancelled(_:))

Tells the delegate that the user dismissed the document menu.

## 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)