Instance Method

resume()

Starts processing of incoming requests.

Declaration

func resume()

Discussion

All listeners start suspended and must be resumed before they begin processing incoming requests.

If called on the service() object, this method never returns. Therefore, you should call it as the last step inside the XPC service's main function after setting up any desired initial state and configuring the listener itself.

If called on any other NSXPCListener, the connection is resumed, and the method returns immediately.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software