Contents

CGCompleteDisplayConfiguration(_:_:)

Completes a set of display configuration changes.

Declaration

func CGCompleteDisplayConfiguration(_ config: CGDisplayConfigRef?, _ option: CGConfigureOption) -> CGError

Parameters

  • 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