1# Interface (ControlCenter) 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 20. 12 13ControlCenter inherits from [ControlCenterQuery](arkts-apis-camera-ControlCenterQuery.md). 14 15It is a class used to enable the camera controller. 16 17## Modules to Import 18 19```ts 20import { camera } from '@kit.CameraKit'; 21``` 22 23## enableControlCenter<sup>20+</sup> 24 25enableControlCenter(enabled: boolean): void 26 27Enables the camera controller. 28 29**Atomic service API**: This API can be used in atomic services since API version 20. 30 31**System capability**: SystemCapability.Multimedia.Camera.Core 32 33**Parameters** 34 35| Name | Type | Mandatory| Description | 36| -------- | -------------------- | ---- | -------------------- | 37| enabled | boolean | Yes| Whether to enable or disable the camera controller. **true** to enable, **false** otherwise.| 38 39**Error codes** 40 41For details about the error codes, see [Camera Error Codes](errorcode-camera.md). 42 43| ID | Error Message | 44|----------|--------------------------| 45| 7400103 | Session not config. | 46 47**Example** 48 49```ts 50function enableControlCenter(videoSession: camera.VideoSession, enable: boolean): void { 51 let isSupported: boolean = videoSession.isControlCenterSupported(); 52 if (isSupported) { 53 videoSession.enableControlCenter(enable); 54 } 55} 56``` 57