import HashMap from "@ohos.util.HashMap"; import camera from "@ohos.multimedia.camera"; import { Camera } from './Camera'; export class DefaultCameraFactory { constructor(r2) { this.TAG = "DefaultCameraFactory"; this.sysCameraMap = new HashMap(); this.appCtx = r2.getApplicationContext(); this.sysCameraManager = camera.getCameraManager(this.appCtx); } getCamera(q2) { return new Camera(this.sysCameraManager, q2); } } 