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

# CGDisplayCopyAllDisplayModes(_:_:)

Returns information about the currently available display modes.

```
func CGDisplayCopyAllDisplayModes(_ display: CGDirectDisplayID, _ options: CFDictionary?) -> CFArray?
```

## Parameters

`display`

The identifier of the display to be accessed.

`options`

Reserved for future expansion. Pass `NULL` for now.

## Return Value

An array of display modes that the display supports, or `NULL` if the display is invalid. The caller is responsible for releasing the array. For more information on accessing the properties of a display mode, see [Getting Information About a Display Mode](/documentation/CoreGraphics/quartz-display-services#Getting-Information-About-a-Display-Mode).

## Discussion

---

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)