<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 11.0.0 -",
    "macOS: 10.15.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FileProviderUI",
  "identifier" : "/documentation/FileProviderUI/FPUIActionExtensionViewController",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "File Provider UI"
    ],
    "preciseIdentifier" : "c:objc(cs)FPUIActionExtensionViewController"
  },
  "title" : "FPUIActionExtensionViewController"
}
-->

# FPUIActionExtensionViewController

The custom user interface used to perform a selected action.

```
class FPUIActionExtensionViewController
```

## 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 [`prepare(forAction:itemIdentifiers:)`](/documentation/FileProviderUI/FPUIActionExtensionViewController/prepare(forAction:itemIdentifiers:)) method, and presents it to the user.

Your subclass must do the following:

- Override the [`prepare(forAction:itemIdentifiers:)`](/documentation/FileProviderUI/FPUIActionExtensionViewController/prepare(forAction:itemIdentifiers:)) method to check the action identifiers and present an appropriate user interface for the selected actions.
- Provide some sort of feedback, even if the action doesn’t require interaction with the user. For example, present a view that quickly fades out and automatically completes the action.
- Call the [`extensionContext`](/documentation/FileProviderUI/FPUIActionExtensionViewController/extensionContext) object’s [`cancelRequest(withError:)`](/documentation/FileProviderUI/FPUIActionExtensionContext/cancelRequest(withError:)) or [`completeRequest()`](/documentation/FileProviderUI/FPUIActionExtensionContext/completeRequest()) method when the action is finished to complete the action.

## Topics

### Working with Actions

[`prepare(forAction:itemIdentifiers:)`](/documentation/FileProviderUI/FPUIActionExtensionViewController/prepare(forAction:itemIdentifiers:))

Performs any necessary setup or configuration for the specified action.

[`prepare(forError:)`](/documentation/FileProviderUI/FPUIActionExtensionViewController/prepare(forError:))

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

[`extensionContext`](/documentation/FileProviderUI/FPUIActionExtensionViewController/extensionContext)

The extension context provided by the host app.

[`FPUIActionExtensionContext`](/documentation/FileProviderUI/FPUIActionExtensionContext)

An extension context provided to File Provider UI extensions.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)