Function

CVDisplayLinkStop(_:)

Stops a display link.

Declaration

func CVDisplayLinkStop(_ displayLink: CVDisplayLink) -> CVReturn

Parameters

displayLink

The display link to be stopped.

Return Value

A Core Video result code. See Core Video Constants for possible values.

Discussion

If the specified display link is already stopped, CVDisplayLinkStop returns an error.

In macOS 10.4 and later, the display link thread is automatically stopped if the user employs Fast User Switching. The display link is restarted when switching back to the original user.

See Also

Managing Display Links