1# Interface (ColorManagementQuery) 2<!--Kit: Camera Kit--> 3<!--Subsystem: Multimedia--> 4<!--Owner: @qano--> 5<!--SE: @leo_ysl--> 6<!--TSE: @xchaosioda--> 7 8> **NOTE** 9> 10> - The initial APIs of this module are supported since API version 10. Newly added APIs will be marked with a superscript to indicate their earliest API version. 11> - The initial APIs of this interface are supported since API version 12. 12 13ColorManagementQuery provides the APIs for color space query. 14 15## Modules to Import 16 17```ts 18import { camera } from '@kit.CameraKit'; 19``` 20 21## getSupportedColorSpaces<sup>12+</sup> 22 23getSupportedColorSpaces(): Array\<colorSpaceManager.ColorSpace\> 24 25Obtains the supported color spaces. 26 27**Atomic service API**: This API can be used in atomic services since API version 19. 28 29**System capability**: SystemCapability.Multimedia.Camera.Core 30 31**Return value** 32 33| Type | Description | 34| ----------------------------------------------- | ---------------------------- | 35| Array<[colorSpaceManager.ColorSpace](../apis-arkgraphics2d/js-apis-colorSpaceManager.md#colorspace)>| Array of color spaces supported. | 36 37**Example** 38 39```ts 40import { BusinessError } from '@kit.BasicServicesKit'; 41import { colorSpaceManager } from '@kit.ArkGraphics2D'; 42 43function getSupportedColorSpaces(session: camera.PhotoSession): Array<colorSpaceManager.ColorSpace> { 44 let colorSpaces: Array<colorSpaceManager.ColorSpace> = []; 45 colorSpaces = session.getSupportedColorSpaces(); 46 return colorSpaces; 47} 48``` 49