Instance Property


An NEVPNConnection object that is used to control the VPN tunnel specified by the VPN configuration.


var connection: NEVPNConnection { get }


The connection object is used to manually start and stop the VPN tunnel, and introspect the current status of the VPN tunnel. If the VPN configuration does not exist in the Network Extension preferences then the connection's status is set to NEVPNStatusInvalid.