Contents

startVPNTunnel()

Start the process of connecting the VPN.

Declaration

func startVPNTunnel() throws

Discussion

This method returns immediately after starting the process of connecting the VPN. In order to be notified when the VPN is fully connected, register to observe the NEVPNStatusDidChangeNotification notification on the NEVPNConnection object, and examine the status property when the notification is received.

See Also

Controlling the VPN connection