device(_:didCloseSessionWithError:)
Tells the delegate when a session is closed on a device.
Declaration
func device(_ device: ICDevice, didCloseSessionWithError error: (any Error)?)Discussion
This message completes the process initiated by the message “requestCloseSession” sent to the device object. This message is also sent if the device module in control of the device ceases to control the device.
Execution of the delegate callback occurs on the main thread.