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.

Instance Properties

Relationships

Inherits From

See Also

First Steps

NSFileProviderExtension

The principal class for the File Provider extension.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software