/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ export interface Camera { /** * 应用模式,只在初始化时有效,不能动态变更 */ mode?: "normal" | "scanCode"; /** * 分辨率,不支持动态修改 */ resolution?: "low" | "medium" | "high"; /** * 摄像头朝向 */ "device-position"?: "front" | "back"; /** * 闪光灯,值为auto, on, off */ flash?: "auto" | "on" | "off" | "torch"; /** * 指定期望的相机帧数据尺寸 */ "frame-size"?: "small" | "medium" | "large"; /** * 摄像头在非正常终止时触发,如退出后台等情况 */ bindStop?: () => void; /** * 用户不允许使用摄像头时触发 */ bindError?: () => void; /** * 相机初始化完成时触发,e.detail = {maxZoom} */ bindInitDone?: () => void; /** * 在扫码识别成功时触发,仅在 mode="scanCode" 时生效 */ bindScanCode?: () => void; }