ColorSyncDeviceSetCustomProfiles(_:_:_:)
Sets custom profiles for a device in lieu of its factory profiles.
Declaration
func ColorSyncDeviceSetCustomProfiles(_ deviceClass: CFString!, _ deviceID: CFUUID!, _ profileInfo: CFDictionary!) -> BoolParameters
- deviceClass:
The class of the device.
- deviceID:
The identifier of the device.
- profileInfo:
A
CFDictionarycontaining 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:
ProfileIDs, which must be a subset of the ProfileIDs you registered the device with, or kColorSyncDeviceDefaultProfileID for setting a custom default profile.
It requires the following values:
The
CFURLRefof 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
kCFPreferencesCurrentHostorkCFPreferencesAnyHost. If you don’t specify it, the framework assumeskCFPreferencesCurrentHost.kColorSyncProfileUserScope: The user scope of the profile; one of
kCFPreferencesCurrentUserorkCFPreferencesAnyUser. If you don’t specify it, the framework assumeskCFPreferencesCurrentUser.