- macOS 10.7+
- Mac Catalyst 13.0+
The name of the event stream for which this handler will be invoked.
The GCD queue to which the event handler block will be submitted. This parameter may be NULL, in which case the connection's target queue will be libdispatch's default target queue, defined as DISPATCH_TARGET_QUEUE_DEFAULT.
The event handler block. The event which this block receives as its first parameter will always be a dictionary which contains the XPC_EVENT_KEY_NAME key. The value for this key will be a string whose value is the name assigned to the XPC event specified in the launchd.plist. Future keys may be added to this dictionary.
Multiple calls to this function for the same event stream will result in undefined behavior.