Function

CVDisplayLinkSetCurrentCGDisplay(_:_:)

Sets the current display of a display link.

Declaration

func CVDisplayLinkSetCurrentCGDisplay(_ displayLink: CVDisplayLink, _ displayID: CGDirectDisplayID) -> CVReturn

Parameters

displayLink

The display link whose display you want to set.

displayID

The ID of the display to be set.

Return Value

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

Discussion

Although it is safe to call this function on a running display link, a discontinuity may appear in the video timestamp.