1# Interface (AutoDeviceSwitchQuery) 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 13. 12 13AutoDeviceSwitchQuery is used to check whether a device supports automatic camera switch. 14 15## Modules to Import 16 17```ts 18import { camera } from '@kit.CameraKit'; 19``` 20 21## isAutoDeviceSwitchSupported<sup>13+</sup> 22 23isAutoDeviceSwitchSupported(): boolean 24 25Checks whether the device supports automatic camera switch. 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| boolean | Check result for the support of automatic camera switch. **true** if supported, **false** otherwise.| 36 37**Example** 38 39```ts 40import { BusinessError } from '@kit.BasicServicesKit'; 41 42function isAutoDeviceSwitchSupported(session: camera.PhotoSession): boolean { 43 let isSupported = false; 44 isSupported = session.isAutoDeviceSwitchSupported(); 45 return isSupported; 46} 47``` 48