getFileProviderConnection(completionHandler:)
Asynchronously returns the service’s connection object.
Declaration
func getFileProviderConnection(completionHandler: @escaping @Sendable (NSXPCConnection?, (any Error)?) -> Void)func fileProviderConnection() async throws -> NSXPCConnectionParameters
- completionHandler:
A block that is called on an anonymous background queue. The system passes this block the following parameters:
connectionAn Nsxpcconnection object for the service, or
nilif an error occurs.errorIf an error occurs, this property contains an object that describes the error; otherwise, it is set to
nil.