An object to start and stop a Personal VPN connection and get its status.
- iOS 8.0+
- macOS 10.11+
- Mac Catalyst 13.0+
NEVPNConnection objects are not instantiated directly. Instead, each
NEVPNManager object has an associated
NEVPNConnection object as a read-only property.
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
on property in
Instances of this class are thread safe.