Contents

CGBeginDisplayConfiguration(_:)

Begins a new set of display configuration changes.

Declaration

func CGBeginDisplayConfiguration(_ config: UnsafeMutablePointer<CGDisplayConfigRef?>?) -> CGError

Parameters

  • config:

    A pointer to storage you provide for a display configuration. On return, your storage contains a new display configuration.

Return Value

A result code. If the request to create a new display configuration is successful, the result is kCGErrorSuccess. For other possible values, see CGError.

Discussion

This function creates a display configuration object that provides a context for a set of display configuration changes. After you specify the desired changes, you use CGCompleteDisplayConfiguration(_:_:) to apply them in a single transaction.

See Also

Functions