Instance Method

schedule(in:forMode:)

This method should be implemented by a subclass to set up monitoring of a port when added to a given run loop in a given input mode.

Declaration

func schedule(in runLoop: RunLoop, forMode mode: RunLoop.Mode)

Parameters

runLoop

The run loop to which to add the receiver.

mode

The run loop mode to which to add the receiver

Discussion

This method should not be called directly.

See Also

Port Monitoring

func remove(from: RunLoop, forMode: RunLoop.Mode)

This method should be implemented by a subclass to stop monitoring of a port when removed from a give run loop in a given input mode.

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