Instance Method

handle(_:)

Processes a given incoming message on the port.

Declaration

iOS, Mac Catalyst, 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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software