Contents

ColorSyncDeviceProfileIterateCallback

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

Declaration

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}

See Also

Registering and enumerating devices