Instance Property

invalidationHandler

An invalidation handler that is called if the connection can not be formed or the connection has terminated and may not be re-established.

Declaration

var invalidationHandler: (() -> Void)? { get set }

Discussion

This handler is invoked on the same queue as reply messages and other handlers, and is always executed last (after the interruption handler, if required). You may not send messages over the connection from within an invalidation handler block.

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