Contents

CGCaptureAllDisplays()

Obtains exclusive use of all active displays, preventing other applications and system services from using the display or changing its configuration.

Declaration

func CGCaptureAllDisplays() -> CGError

Return Value

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

Discussion

This function captures all attached displays in a single operation. When an application captures a display, Quartz doesn’t allow other applications and system services to use the display or change its configuration. This can provide a more immersive environment for your application.

See Also

Functions