CGCompleteDisplayConfiguration(_:_:)
Completes a set of display configuration changes.
Declaration
func CGCompleteDisplayConfiguration(_ config: CGDisplayConfigRef?, _ option: CGConfigureOption) -> CGErrorParameters
- config:
The display configuration that contains the desired changes. On return, this configuration is no longer valid.
- option:
The scope of the display configuration changes. Pass one of the constants listed in Cgconfigureoption.
Return Value
A result code. If the request to apply changes is successful, the result is kCGErrorSuccess. For other possible values, see CGError.
Discussion
This function applies a set of display configuration changes as a single atomic transaction. The duration or scope of the changes depends on the value of the option parameter. For more information about possible scopes, see CGConfigureOption.
A configuration change can fail if you request an unsupported display mode or if another application is running in full-screen mode.
See Also
Functions
CGAcquireDisplayFadeReservation(_:_:)CGAssociateMouseAndMouseCursorPosition(_:)CGBeginDisplayConfiguration(_:)CGCancelDisplayConfiguration(_:)CGCaptureAllDisplays()CGCaptureAllDisplaysWithOptions(_:)CGConfigureDisplayFadeEffect(_:_:_:_:_:_:)CGConfigureDisplayMirrorOfDisplay(_:_:_:)CGConfigureDisplayMode(_:_:_:)CGConfigureDisplayOrigin(_:_:_:_:)CGConfigureDisplayStereoOperation(_:_:_:_:)CGConfigureDisplayWithDisplayMode(_:_:_:_:)CGCursorIsDrawnInFramebuffer()CGCursorIsVisible()CGDirectDisplayCopyCurrentMetalDevice(_:)