One Logo Pool Ball
NetworkExtension · IOS API REFERENCE

NEVPNConnection

class · iOS 8.0+ · SDK 27.1

class NEVPNConnection

Members (8)

method · iOS 16.0+

fetchLastDisconnectError

TypeScript
fetchLastDisconnectError(handler: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func fetchLastDisconnectError() async throws
init

init

TypeScript
static init(): NEVPNConnection
Swift declaration
init()
method · iOS 8.0+

startVPNTunnel

TypeScript
startVPNTunnel(): void
Swift declaration
func startVPNTunnel() throws
method · iOS 9.0+

startVPNTunnel

TypeScript
startVPNTunnelOptions(options?: (Record<string, _ObjectiveC_NSObject>) | null): void
Swift declaration
func startVPNTunnel(options: [String : NSObject]? = nil) throws
method · iOS 8.0+

stopVPNTunnel

TypeScript
stopVPNTunnel(): void
Swift declaration
func stopVPNTunnel()
get · iOS 9.0+

connectedDate

TypeScript
get connectedDate(): (globalThis.Date) | null
Swift declaration
var connectedDate: Date? { get }
get · iOS 10.0+

manager

TypeScript
get manager(): NEVPNManager
Swift declaration
var manager: NEVPNManager { get }
get · iOS 8.0+

status

TypeScript
get status(): NEVPNStatus
Swift declaration
var status: NEVPNStatus { get }

Skipped declarations

No declarations were skipped in this snapshot.

All NetworkExtension types →