Contents

ColorSyncDeviceCopyDeviceInfo(_:_:)

Copies information about a device, resolved for the current host and current user.

Declaration

func ColorSyncDeviceCopyDeviceInfo(_ deviceClass: CFString!, _ devID: CFUUID!) -> Unmanaged<CFDictionary>?

Parameters

  • deviceClass:

    The class of the device.

  • devID:

    The identifier of the device.

Return Value

A dictionary describing the device, or NULL if no matching device is registered.

Discussion

Returns a dictionary with the following keys and values resolved for the current host and current user:

<<
    kColorSyncDeviceClass                   {camera, display, printer, scanner}
    kColorSyncDeviceID                      {CFUUIDRef registered with ColorSync}
    kColorSyncDeviceDescription             {localized device description}
    kColorSyncFactoryProfiles  (dictionary) <<
                                                {ProfileID}    (dictionary) <<
                                                                                kColorSyncDeviceProfileURL      {CFURLRef or kCFNull}
                                                                                kColorSyncDeviceModeDescription {localized mode description}
                                                                            >>
                                                 ...
                                                kColorSyncDeviceDefaultProfileID {ProfileID}
                                            >>
    kColorSyncCustomProfiles  (dictionary) <<
                                                {ProfileID}    {CFURLRef or kCFNull}
                                                ...
                                           <<
    kColorSyncDeviceUserScope              {kCFPreferencesAnyUser or kCFPreferencesCurrentUser}
    kColorSyncDeviceHostScope              {kCFPreferencesAnyHost or kCFPreferencesCurrentHost}
>>

See Also

Registering and enumerating devices