---
title: "CVDisplayLinkCreateWithCGDisplays(_:_:_:)"
framework: corevideo
role: symbol
role_heading: Function
path: "corevideo/cvdisplaylinkcreatewithcgdisplays(_:_:_:)"
---

# CVDisplayLinkCreateWithCGDisplays(_:_:_:)

Creates a display link for an array of displays.

## Declaration

```swift
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

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

## Discussion

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.

## See Also

### Creating Display Links

- [CVDisplayLinkCreateWithCGDisplay(_:_:)](corevideo/cvdisplaylinkcreatewithcgdisplay(_:_:).md)
- [CVDisplayLinkCreateWithActiveCGDisplays(_:)](corevideo/cvdisplaylinkcreatewithactivecgdisplays(_:).md)
- [CVDisplayLinkCreateWithOpenGLDisplayMask(_:_:)](corevideo/cvdisplaylinkcreatewithopengldisplaymask(_:_:).md)
