---
title: UIDocumentBrowserAction
framework: uikit
role: symbol
role_heading: Class
path: uikit/uidocumentbrowseraction
---

# UIDocumentBrowserAction

A custom action that you can create and add to a document browser’s Edit menu or navigation bar.

## Declaration

```swift
class UIDocumentBrowserAction
```

## Mentioned in

Adding custom actions and activities

## Overview

Overview By default, the system provides a number of standard actions (copy, move, rename, delete, and share). To add custom actions, assign an array of UIDocumentBrowserAction objects to the browser’s customActions property. Document browser actions can appear in either the navigation bar or the Edit menu. Navigation bar actions appear in the navigation bar when the user places the browser into the Select mode. Menu actions appear in the Edit Menu when the user long presses on a document or folder. When triggered, these actions are passed the URLs of the currently selected items.

## Topics

### Creating and configuring actions

- [init(identifier:localizedTitle:availability:handler:)](uikit/uidocumentbrowseraction/init(identifier:localizedtitle:availability:handler:).md)
- [image](uikit/uidocumentbrowseraction/image.md)
- [supportedContentTypes](uikit/uidocumentbrowseraction/supportedcontenttypes.md)
- [supportsMultipleItems](uikit/uidocumentbrowseraction/supportsmultipleitems.md)

### Accessing activity data

- [identifier](uikit/uidocumentbrowseraction/identifier.md)
- [localizedTitle](uikit/uidocumentbrowseraction/localizedtitle.md)
- [availability](uikit/uidocumentbrowseraction/availability-swift.property.md)
- [UIDocumentBrowserAction.Availability](uikit/uidocumentbrowseraction/availability-swift.struct.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Related Documentation

- [UIDocumentBrowserViewController](uikit/uidocumentbrowserviewcontroller.md)

### Adding custom actions

- [customActions](uikit/uidocumentbrowserviewcontroller/customactions.md)
