One Logo Pool Ball
NetworkExtension · IOS API REFERENCE

NETunnelProviderSession

class · iOS 9.0+ · SDK 27.1

class NETunnelProviderSession

Members (4)

init

init

TypeScript
static init(): NETunnelProviderSession
Swift declaration
init()
method · iOS 9.0+

sendProviderMessage

TypeScript
sendProviderMessage(messageData: ArrayBuffer, responseHandler?: (((arg0: (ArrayBuffer) | null) => void)) | null): void
Swift declaration
func sendProviderMessage(_ messageData: Data, responseHandler: ((Data?) -> Void)? = nil) throws
method · iOS 9.0+

startTunnel

TypeScript
startTunnel(options?: (Record<string, unknown>) | null): void
Swift declaration
func startTunnel(options: [String : Any]? = nil) throws
method · iOS 9.0+

stopTunnel

TypeScript
stopTunnel(): void
Swift declaration
func stopTunnel()

Skipped declarations

No declarations were skipped in this snapshot.

All NetworkExtension types →