---
title: "CVDisplayLinkGetCurrentCGDisplay(_:)"
framework: corevideo
role: symbol
role_heading: Function
path: "corevideo/cvdisplaylinkgetcurrentcgdisplay(_:)"
---

# CVDisplayLinkGetCurrentCGDisplay(_:)

Gets the current display associated with a display link.

## Declaration

```swift
func CVDisplayLinkGetCurrentCGDisplay(_ displayLink: CVDisplayLink) -> CGDirectDisplayID
```

## Parameters

- `displayLink`: The display link whose current display you want to obtain.

## Return Value

Return Value An identifier representing the current display. For more information on the display identifier type, see CGDirectDisplayID.

## See Also

### Inspecting Display Links

- [CVDisplayLinkGetCurrentTime(_:_:)](corevideo/cvdisplaylinkgetcurrenttime(_:_:).md)
- [CVDisplayLinkTranslateTime(_:_:_:)](corevideo/cvdisplaylinktranslatetime(_:_:_:).md)
- [CVDisplayLinkGetActualOutputVideoRefreshPeriod(_:)](corevideo/cvdisplaylinkgetactualoutputvideorefreshperiod(_:).md)
- [CVDisplayLinkGetNominalOutputVideoRefreshPeriod(_:)](corevideo/cvdisplaylinkgetnominaloutputvideorefreshperiod(_:).md)
- [CVDisplayLinkGetOutputVideoLatency(_:)](corevideo/cvdisplaylinkgetoutputvideolatency(_:).md)
- [CVDisplayLinkIsRunning(_:)](corevideo/cvdisplaylinkisrunning(_:).md)
- [CVDisplayLinkGetTypeID()](corevideo/cvdisplaylinkgettypeid().md)
