Class

FPUIActionExtensionViewController

The custom user interface used to perform a selected action.

Declaration

iOS
@interface FPUIActionExtensionViewController : UIViewController
macOS
@interface FPUIActionExtensionViewController : NSViewController

Overview

Subclass this view controller to provide the user interface for your actions.

No matter how many actions you define, your File Provider UI extension has only one FPUIActionExtensionViewController subclass. When the user selects one of your actions, the system instantiates a copy of your subclass, calls its prepareForActionWithIdentifier:itemIdentifiers: method, and presents it to the user.

Your subclass must do the following:

Topics

Working with Actions

- prepareForActionWithIdentifier:itemIdentifiers:

Performs any necessary setup or configuration for the specified action.

- prepareForError:

Performs any necessary setup or configuration when an authentication error occurs.

extensionContext

The extension context provided by the host app.

FPUIActionExtensionContext

An extension context provided to File Provider UI extensions.

Relationships

See Also

Document Browser Customization

Adding Actions

Add actions to the browser's context menu.