Class

UIDocumentBrowserAction

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

Declaration

@interface 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

- initWithIdentifier:localizedTitle:availability:handler:

Instantiates and returns a new browser action item.

image

The action's image displayed in the navigation bar.

supportedContentTypes

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

supportsMultipleItems

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

Accessing Activity Data

identifier

The action's unique identifier.

localizedTitle

The title that appears in the menu or navigation bar.

availability

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

Availability

UIDocumentBrowserActionAvailability

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

Relationships

Inherits From

See Also

Adding Custom Actions

customActions

Custom document browser actions.