# Interface (WhiteBalanceQuery) > **NOTE** > > - 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. > - The initial APIs of this interface are supported since API version 20. WhiteBalanceQuery provides APIs to check whether a white balance mode is supported and obtain the white balance mode range supported. ## Modules to Import ```ts import { camera } from '@kit.CameraKit'; ``` ## isWhiteBalanceModeSupported20+ isWhiteBalanceModeSupported(mode: WhiteBalanceMode): boolean Checks whether a white balance mode is supported. **Atomic service API**: This API can be used in atomic services since API version 20. **System capability**: SystemCapability.Multimedia.Camera.Core **Parameters** | Name | Type | Mandatory | Description | | -------- |-----------------------------------------| ---- | ----------------------------- | | mode | [WhiteBalanceMode](arkts-apis-camera-e.md#whitebalancemode20) | Yes | White balance mode. | **Return value** | Type | Description | | ---------- | ----------------------------- | | boolean | Check result for the support of the white balance mode. **true** if supported, **false** otherwise.| **Error codes** For details about the error codes, see [Camera Error Codes](errorcode-camera.md). | ID | Error Message | | --------------- | --------------- | | 7400101 | Parameter missing or parameter type incorrect. | | 7400103 | Session not config, only throw in session usage. | **Example** ```ts import { BusinessError } from '@kit.BasicServicesKit'; function isWhiteBalanceModeSupported(session: camera.PhotoSession | camera.VideoSession): boolean { let status: boolean = false; try { let mode: camera.WhiteBalanceMode = camera.WhiteBalanceMode.DAYLIGHT; status = session.isWhiteBalanceModeSupported(mode); } catch (error) { let err = error as BusinessError; console.error(`The isWhiteBalanceModeSupported call failed. error code: ${err.code}`); } return status; } ``` ## getWhiteBalanceRange20+ getWhiteBalanceRange(): Array\ Obtains the range of white balance values in manual white balance mode. **Atomic service API**: This API can be used in atomic services since API version 20. **System capability**: SystemCapability.Multimedia.Camera.Core **Return value** | Type | Description | | ---------- | ----------------------------- | | Array\ | Range of white balance values, for example, [2800, ...,10000], in units of K (Kelvin). The actual value depends on the bottom-layer capability.| **Error codes** For details about the error codes, see [Camera Error Codes](errorcode-camera.md). | ID | Error Message | | --------------- | --------------- | | 7400103 | Session not config, only throw in session usage. | **Example** ```ts import { BusinessError } from '@kit.BasicServicesKit'; function getWhiteBalanceRange(session: camera.PhotoSession | camera.VideoSession): Array { let range: Array = []; try { range = session.getWhiteBalanceRange(); } catch (error) { let err = error as BusinessError; console.error(`The getWhiteBalanceRange call failed. error code: ${err.code}`); } return range; } ```