Function

CVDisplayLinkCreateWithCGDisplays(_:_:_:)

Creates a display link for an array of displays.

Declaration

func CVDisplayLinkCreateWithCGDisplays(_ displayArray: UnsafeMutablePointer<CGDirectDisplayID>, _ count: CFIndex, _ displayLinkOut: UnsafeMutablePointer<CVDisplayLink?>) -> CVReturn

Parameters

displayArray

A pointer to an array of Core Graphics display IDs representing all the active monitors you want to use with this display link.

count

The number of displays in the display array.

displayLinkOut

On output, displayLinkOut points to the newly created display link.

Return Value

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

Discussion

Use this call to create a display link for a set of displays identified by the Core Graphics display IDs. For more information on the display identifier type, see CGDirectDisplayID.