Instance Method

getFileProviderConnectionWithCompletionHandler:

Asynchronously returns the service’s connection object.

Declaration

- (void)getFileProviderConnectionWithCompletionHandler:(void (^)(NSXPCConnection *connection, NSError *error))completionHandler;

Parameters

completionHandler

A block that is called on an anonymous background queue. The system passes this block the following parameters:

connection

An NSXPCConnection object for the service, or nil if an error occurs.

error

If an error occurs, this property contains an object that describes the error; otherwise, it is set to nil.

See Also

Accessing the Service

name

The File Provider service’s name.