ConnectionHandler
A type that contains a custom closure that handles incoming XPC connections.
Declaration
@MainActor @preconcurrency struct ConnectionHandlerMentioned in
Overview
This type manages a closure in your app extension that accepts incoming XPC connections from a host app. Create an instance of this structure and initialize it with a closure for the type of XPC connection the host app uses with app extensions. Assign the instance you created to the configuration property of your custom AppExtension type. When the host app tries to open a connection, the system runs your closure to accept that connection.
Use this type to establish connections with either the Foundation or XPC framework.