---
title: "ColorSyncDeviceCopyDeviceInfo(_:_:)"
framework: colorsync
role: symbol
role_heading: Function
platforms: [Mac Catalyst 13.0+, macOS 10.13+]
path: "colorsync/colorsyncdevicecopydeviceinfo(_:_:)"
---

# ColorSyncDeviceCopyDeviceInfo(_:_:)

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

## Declaration

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

## Parameters

- `deviceClass`: The class of the device.
- `devID`: The identifier of the device.

## Return Value

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

## Discussion

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

- [ColorSyncDeviceProfileIterateCallback](colorsync/colorsyncdeviceprofileiteratecallback.md)
- [ColorSyncDeviceSetCustomProfiles(_:_:_:)](colorsync/colorsyncdevicesetcustomprofiles(_:_:_:).md)
- [ColorSyncIterateDeviceProfiles(_:_:)](colorsync/colorsynciteratedeviceprofiles(_:_:).md)
- [ColorSyncProfileCreateDeviceProfile(_:_:_:)](colorsync/colorsyncprofilecreatedeviceprofile(_:_:_:).md)
- [ColorSyncRegisterDevice(_:_:_:)](colorsync/colorsyncregisterdevice(_:_:_:).md)
- [ColorSyncUnregisterDevice(_:_:)](colorsync/colorsyncunregisterdevice(_:_:).md)
