Cancels a pending request to connect to another iOS device.
- iOS 3.0–7.0Deprecated
- macOS 10.10–10.10Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- watchOS 3.0–2.0Deprecated
The string identifying the peer you previously requested to connect to.
Your application previously called
connect(to to create a connection to another iOS device. When your application cancels the connection attempt, both delegates’
session(_: methods are called.
If your application already connected to the peer, your application should call