CVDisplayLinkCreateWithActiveCGDisplays(_:)
Creates a display link capable of being used with all active displays.
Declaration
func CVDisplayLinkCreateWithActiveCGDisplays(_ displayLinkOut: UnsafeMutablePointer<CVDisplayLink?>) -> CVReturnParameters
- displayLinkOut:
On output,
displayLinkOutpoints to the newly created display link.
Return Value
A Core Video result code. See Core Video Constants for possible values.
Discussion
CVDisplayLinkCreateWithActiveCGDisplays determines the displays actively used by the host computer and creates a display link compatible with all of them. For most applications, calling this function is the most convenient way to create a display link. After creation, you can assign the display link to any active display by calling the CVDisplayLinkSetCurrentCGDisplay(_:_:) function.