Start the process of connecting the tunnel.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+Beta
A dictionary containing options to be passed to the Tunnel Provider extension.
A pointer to a pointer to an
NSErrorobject. If specified and the tunnel connection process cannot be started due to an error, this parameter will be set to point to an
NSErrorobject containing details about the error.
This method returns immediately after starting the process of connecting the tunnel. In order to be notified when the tunnel is fully connected, register to observe the
NEVPNStatus notification on the
NETunnel object and examine its status property when the notification is received.