Contents

reply(_:)

Sends a reply to the originator of the dictionary.

Declaration

func reply(_ reply: XPCDictionary)

Parameters

  • reply:

    A dictionary to send back to the client that sent the receiving dictionary.

Discussion

When a listener receives an XPCDictionary, the dictionary keeps track of the client that sent it. This function sends the specified reply dictionary back to the originating client.

Don’t call this function more than once on a single dictionary, and don’t call it on a dictionary that wasn’t received from a client. Calling it more than once or sending a reply using a dictionary that wasn’t received triggers an API misuse crash.