Contents

makeLibXPCConnection()

Creates a new XPC connection to the extension process.

Declaration

func makeLibXPCConnection() throws -> xpc_connection_t

Return Value

An object that represents the new XPC connection.

Discussion

When you create an xpc_connection_t in your browser app using this method, the system calls your extension’s handle(xpcConnection:) method to supply the remote end of the connection to your extension process.