<!--
{
  "availability" : [
    "macCatalyst: 13.1.0 -",
    "macOS: 10.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGCaptureAllDisplaysWithOptions(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@F@CGCaptureAllDisplaysWithOptions"
  },
  "title" : "CGCaptureAllDisplaysWithOptions(_:)"
}
-->

# CGCaptureAllDisplaysWithOptions(_:)

Captures all attached displays, using the specified options.

```
func CGCaptureAllDisplaysWithOptions(_ options: CGCaptureOptions) -> CGError
```

## Parameters

`options`

The options to use. See [`CGCaptureOptions`](/documentation/CoreGraphics/CGCaptureOptions).

## Return Value

A result code. See `Core Graphics Data Types and Constants`.

## Discussion

This function allows you to specify one or more options to use during capture of all attached displays.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)