Instance Method

prepare(forAction:itemIdentifiers:)

Performs any necessary setup or configuration for the specified action.

Declaration

func prepare(forAction actionIdentifier: String, itemIdentifiers: [NSFileProviderItemIdentifier])

Parameters

actionIdentifier

The identifier for the action performed by the user.

itemIdentifiers

The identifiers of the items affected by the action.

Discussion

Use this method to prepare a user interface for handling the action. At a minimum, you should display feedback about the action.

For more information, see Adding Actions.

See Also

Working with Actions

func prepare(forError: Error)

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

var extensionContext: FPUIActionExtensionContext

The extension context provided by the host app.

class FPUIActionExtensionContext

An extension context provided to File Provider UI extensions.