Platforms to show: All Mac Windows Linux Cross-Platform

Back to CSDeviceMBS module.

Previous items

CSDeviceMBS.SetCustomProfiles(deviceClass as string, deviceID as CFUUIDMBS, profileInfo as dictionary) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ColorSync MBS MacCF Plugin 10.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Sets a custom profile:

profileInfo is a CFDictionary containing the information about custom profiles to be set in lieu of factory profiles.

Required keys:

ProfileIDs which must be the subset of the ProfileIDs that device was registered with or kColorSyncDeviceDefaultProfileID for setting custom default profile.

Required values:

CFURLMBS (folderitem) of the profile to be set as a custom profile.

Optional keys:

kColorSyncProfileHostScope: host scope of the profile; one of kCFPreferences{Current,Any}Host; if unspecified kCFPreferencesCurrentHost is assumed.
kColorSyncProfileUserScope: user scope of the profile; one of kCFPreferences{Current,Any}User; if unspecified kCFPreferencesCurrentUser is assumed.

Notes:
1. Profile scope for custom profiles cannot exceed scope of the factory profiles.
2. There is only one host scope and user scope per dictionary (i.e. per call)
3. Pass CFNullRef in lieu of the profile URL to unset the custom profile and reset the current profile to the factory profile.

Returns true on success and false in case of failure.

CSDeviceMBS.UnregisterDevice(deviceClass as string, deviceID as CFUUIDMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ColorSync MBS MacCF Plugin 10.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Unregisters a device of given deviceClass and deviceID.

Returns true on success and false in case of failure.

Previous items

The items on this page are in the following plugins: MBS MacCF Plugin.


💬 Ask a question or report a problem
The biggest plugin in space...