Contents

accept(connection:)

A closure the framework calls when a host tries to connect to this extension.

Declaration

nonisolated func accept(connection: NSXPCConnection) -> Bool

Return Value

A Boolean value that indicates whether the extension accepts the connection.

Discussion

  • connection: The incoming XPC connection object.