Contents

startTunnel(options:)

Start the process of connecting the tunnel.

Declaration

func startTunnel(options: [String : Any]? = nil) throws

Parameters

  • options:

    A dictionary containing options to be passed to the Tunnel Provider extension.

Discussion

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 NEVPNStatusDidChangeNotification notification on the NETunnelProviderSession object and examine its status property when the notification is received.

See Also

Controlling the tunnel connection