import { HMSConstants } from './HMSConstants'; import HMSManager from '../modules/HMSManagerModule'; export class HMSCameraControl { /** * It captures the image from the device camera at max possible resolution. * * @param {boolean} [flash=false] flash - value indicating whether to use flash while capturing image or not * @returns Promise - which is resolved with the file path of the captured image saved on the disk */ static captureImageAtMaxSupportedResolution( flash: boolean = false ): Promise { return HMSManager.captureImageAtMaxSupportedResolution({ id: HMSConstants.DEFAULT_SDK_ID, flash, }); } }