NEVPNConnection
An object to start and stop a Personal VPN connection and get its status.
Declaration
class NEVPNConnectionOverview
NEVPNConnection objects are not instantiated directly. Instead, each NEVPNManager object has an associated NEVPNConnection object as a read-only property.
The NEVPNConnection class provides methods for starting and stopping the VPN programmatically. The other way that the VPN can be started and stopped is through VPN On Demand. See the onDemandRules property in NEVPNManager and NEOnDemandRule.
Instances of this class are thread safe.
Topics
Controlling the VPN connection
startVPNTunnel()startVPNTunnel(options:)NEVPNConnectionStartOptionUsernameNEVPNConnectionStartOptionPasswordstopVPNTunnel()