Associates a client context and a callback function with a CFHost object or disassociates a client context and callback function that were previously set.
- iOS 2.0+
- macOS 10.3+
- Mac Catalyst 13.0+
- tvOS 9.0+
The host to modify. The value must not be
The callback function to associate with
the. The callback function will be called when a resolution completes or is cancelled. If you are calling this function to disassociate a client context and callback from
infofield will be passed to the callback function specified by
clientis called. This value must not be
NULLwhen setting an association.
NULLwhen disassociating a client context and a callback from a host.
TRUE if the association could be set or unset, otherwise
The callback function specified by
client will be called when a resolution completes or is cancelled.
This function is thread safe.