Instance Method

remove(from:forMode:)

Removes the display link from the run loop for the given mode.

Declaration

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

Parameters

runloop

The run loop associated with the display link.

mode

The run loop mode in which the display link is running.

Discussion

The run loop releases the display link if it is no longer associated with any run modes.

See Also

Scheduling the Display Link to Send Notifications

func add(to: RunLoop, forMode: RunLoop.Mode)

Registers the display link with a run loop.

func invalidate()

Removes the display link from all run loop modes.