Instance Method

handle(_:)

Processes a given incoming message on the port.

Declaration

iOS, tvOS, watchOS
optional func handle(_ message: NSPortMessage)
macOS
optional func handle(_ message: PortMessage)

Parameters

portMessage

An incoming port message.

Discussion

See Port for more information.

The delegate should implement either handle(_:) or the NSMachPortDelegate protocol method handleMachMessage(_:). You must not implement both delegate methods.

See Also