Contents

newConnection(forProcessID:minimumVersion:maximumVersion:hostCapabilities:reply:)

Declaration

func newConnection(forProcessID processID: pid_t, minimumVersion minVers: Int, maximumVersion maxVers: Int, hostCapabilities remoteCapabilities: [AnyHashable : Any]!, reply: ((NSXPCListenerEndpoint?, Int, (any Error)?) -> Void)!)
func newConnection(forProcessID processID: pid_t, minimumVersion minVers: Int, maximumVersion maxVers: Int, hostCapabilities remoteCapabilities: [AnyHashable : Any]!) async throws -> (NSXPCListenerEndpoint?, Int)

Discussion

Accepts a connection from the host application.

The host application automatically calls this so plug-ins should not call it.