Class

NSFileProviderManager

A manager object that you use to communicate with the file provider from either your app or your File Provider extension.

Declaration

@interface NSFileProviderManager : NSObject

Topics

Accessing File Provider Data

defaultManager

Returns the shared file provider manager object; you can access this object in both the containing app and the File Provider extension.

documentStorageURL

The root URL for all shared documents.

providerIdentifier

A purpose identifier for coordinated reads and writes.

Performing Actions

+ placeholderURLForURL:

Returns a placeholder URL for a given document URL.

+ writePlaceholderAtURL:withMetadata:error:

Writes a document placeholder with the provided metadata.

- registerURLSessionTask:forItemWithIdentifier:completionHandler:

Registers the URL session task responsible for the specified item.

- signalEnumeratorForContainerItemIdentifier:completionHandler:

Alerts the system to changes in the specified folder's content.

Working with Domains

+ managerForDomain:

Returns a newly created file provider manager for the specified domain.

+ addDomain:completionHandler:

Adds a domain to the File Provider extension.

+ getDomainsWithCompletionHandler:

Returns all of the File Provider extension's domains.

+ removeDomain:completionHandler:

Removes a domain from the File Provider extension.

+ removeAllDomainsWithCompletionHandler:

Removes all domains from the File Provider extension.

NSFileProviderDomain

A File Provider extension's domain.

Relationships

Inherits From

See Also

First Steps

NSFileProviderExtension

The principal class for the File Provider extension.