<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.13.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ColorSync",
  "identifier" : "/documentation/ColorSync/ColorSyncDeviceProfileIterateCallback",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "ColorSync"
    ],
    "preciseIdentifier" : "c:@T@ColorSyncDeviceProfileIterateCallback"
  },
  "title" : "ColorSyncDeviceProfileIterateCallback"
}
-->

# ColorSyncDeviceProfileIterateCallback

A callback that ColorSync invokes for each device profile during iteration.

```
typealias ColorSyncDeviceProfileIterateCallback = (CFDictionary?, UnsafeMutableRawPointer?) -> Bool
```

## Parameters

`colorSyncDeviceProfileInfo`

A dictionary describing the device profile.

`userInfo`

The user info passed to the iteration function. Optional.

## Discussion

The `colorSyncDeviceProfileInfo` dictionary contains the following keys:

```
kColorSyncDeviceClass              {camera, display, printer, scanner}
kColorSyncDeviceID                 {CFUUIDRef registered with ColorSync}
kColorSyncDeviceDescription        {localized device description}
kColorSyncDeviceModeDescription    {localized device mode description}
kColorSyncDeviceProfileID          {ProfileID registered with ColorSync}
kColorSyncDeviceProfileURL         {CFURLRef registered with ColorSync}
kColorSyncDeviceProfileIsFactory   {kCFBooleanTrue or kCFBooleanFalse}
kColorSyncDeviceProfileIsDefault   {kCFBooleanTrue or kCFBooleanFalse}
kColorSyncDeviceProfileIsCurrent   {kCFBooleanTrue or kCFBooleanFalse}
```

---

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)