Class

UIDocumentBrowserAction

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

Declaration

class UIDocumentBrowserAction : NSObject

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

var image: UIImage?

The action's image displayed in the navigation bar.

var supportedContentTypes: [String]

An array of uniform type identifiers that define the types of documents that the action supports.

var supportsMultipleItems: Bool

A Boolean value that determines whether the action can be triggered on more than one document at a time.

Accessing Activity Data

var identifier: String

The action's unique identifier.

var localizedTitle: String

The title that appears in the menu or navigation bar.

var availability: UIDocumentBrowserAction.Availability

A value that defines where the action can appear (in the Edit Menu, the navigation bar, or both).

Availability

struct UIDocumentBrowserAction.Availability

Values that determine where the action can appear in the document browser.

Relationships

Inherits From

Conforms To

See Also

Adding Custom Actions

var customActions: [UIDocumentBrowserAction]

Custom document browser actions.