Contents

CGDisplayCaptureWithOptions(_:_:)

Obtains exclusive use of a display for an application using the options you specify.

Declaration

func CGDisplayCaptureWithOptions(_ display: CGDirectDisplayID, _ options: CGCaptureOptions) -> CGError

Parameters

  • display:

    The identifier of the display to capture.

  • options:

    The options to use. See Cgcaptureoptions.

Return Value

A result code. To interpret the result code, see CGError.

Discussion

This function allows you to specify one or more options to use during capture of a display.

See Also

Functions