Contents

ColorSyncDeviceSetCustomProfiles(_:_:_:)

Sets custom profiles for a device in lieu of its factory profiles.

Declaration

func ColorSyncDeviceSetCustomProfiles(_ deviceClass: CFString!, _ deviceID: CFUUID!, _ profileInfo: CFDictionary!) -> Bool

Parameters

  • deviceClass:

    The class of the device.

  • deviceID:

    The identifier of the device.

  • profileInfo:

    A CFDictionary containing the information about custom profiles to set in lieu of factory profiles.

Return Value

true on success and false in case of failure.

Discussion

The profileInfo dictionary requires the following keys:

It requires the following values:

  • The CFURLRef of the profile to set as a custom profile.

It may also include the following optional keys:

  • kColorSyncProfileHostScope: The host scope of the profile; one of kCFPreferencesCurrentHost or kCFPreferencesAnyHost. If you don’t specify it, the framework assumes kCFPreferencesCurrentHost.

  • kColorSyncProfileUserScope: The user scope of the profile; one of kCFPreferencesCurrentUser or kCFPreferencesAnyUser. If you don’t specify it, the framework assumes kCFPreferencesCurrentUser.

See Also

Registering and enumerating devices