---
title: UIDocumentMenuDelegate
framework: uikit
role: symbol
role_heading: Protocol
path: uikit/uidocumentmenudelegate
---

# UIDocumentMenuDelegate

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

## Declaration

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

## Overview

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:)](uikit/uidocumentmenudelegate/documentmenu(_:didpickdocumentpicker:).md)
- [documentMenuWasCancelled(_:)](uikit/uidocumentmenudelegate/documentmenuwascancelled(_:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Getting the user-selected document picker

- [delegate](uikit/uidocumentmenuviewcontroller/delegate.md)
