One Logo Pool Ball
NetworkExtension · IOS API REFERENCE

NWUDPSession

class · iOS 9.0+ · Deprecated in iOS 18.0 · SDK 27.1

class NWUDPSession

Members (13)

method · iOS 9.0+ · Deprecated in iOS 18.0

cancel

TypeScript
cancel(): void
Swift declaration
func cancel()
init · iOS 9.0+ · Deprecated in iOS 18.0

init

TypeScript
static init(session: NWUDPSession): NWUDPSession
Swift declaration
init(upgradeFor session: NWUDPSession)
method · iOS 9.0+ · Deprecated in iOS 18.0

setReadHandler

TypeScript
setReadHandler(handler: ((arg0: (Array<ArrayBuffer>) | null, arg1: (NativeError) | null) => void), maxDatagrams: number): void
Swift declaration
func setReadHandler(_ handler: @escaping ([Data]?, (any Error)?) -> Void, maxDatagrams: Int)
method · iOS 9.0+ · Deprecated in iOS 18.0

tryNextResolvedEndpoint

TypeScript
tryNextResolvedEndpoint(): void
Swift declaration
func tryNextResolvedEndpoint()
method · iOS 9.0+ · Deprecated in iOS 18.0

writeDatagram

TypeScript
writeDatagram(datagram: ArrayBuffer, completionHandler: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func writeDatagram(_ datagram: Data, completionHandler: @escaping ((any Error)?) -> Void)
method · iOS 9.0+ · Deprecated in iOS 18.0

writeMultipleDatagrams

TypeScript
writeMultipleDatagrams(datagramArray: Array<ArrayBuffer>, completionHandler: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func writeMultipleDatagrams(_ datagramArray: [Data], completionHandler: @escaping ((any Error)?) -> Void)
get · iOS 9.0+ · Deprecated in iOS 18.0

currentPath

TypeScript
get currentPath(): (NWPath) | null
Swift declaration
var currentPath: NWPath? { get }
get · iOS 9.0+ · Deprecated in iOS 18.0

endpoint

TypeScript
get endpoint(): NWEndpoint
Swift declaration
var endpoint: NWEndpoint { get }
get · iOS 9.0+ · Deprecated in iOS 18.0

hasBetterPath

TypeScript
get hasBetterPath(): boolean
Swift declaration
var hasBetterPath: Bool { get }
get · iOS 9.0+ · Deprecated in iOS 18.0

maximumDatagramLength

TypeScript
get maximumDatagramLength(): number
Swift declaration
var maximumDatagramLength: Int { get }
get · iOS 9.0+ · Deprecated in iOS 18.0

resolvedEndpoint

TypeScript
get resolvedEndpoint(): (NWEndpoint) | null
Swift declaration
var resolvedEndpoint: NWEndpoint? { get }
get · iOS 9.0+ · Deprecated in iOS 18.0

state

TypeScript
get state(): NWUDPSessionState
Swift declaration
var state: NWUDPSessionState { get }
get · iOS 9.0+ · Deprecated in iOS 18.0

isViable

TypeScript
get isViable(): boolean
Swift declaration
var isViable: Bool { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

NWUDPSession.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All NetworkExtension types →