The custom user interface used to perform a selected action.
SDKs
- iOS 11.0+
- macOS 10.15+
Framework
- File
Provider UI
Declaration
class FPUIActionExtensionViewController : UIView Controller
class FPUIActionExtensionViewController : NSView Controller
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 FPUIAction
subclass. When the user selects one of your actions, the system instantiates a copy of your subclass, calls its prepare(for
method, and presents it to the user.
Your subclass must do the following:
Override the
prepare(for
method to check the action identifiers and present an appropriate user interface for the selected actions.Action: item Identifiers:) 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
extension
object'sContext cancel
orRequest(with Error:) complete
method when the action is finished to complete the action.Request()