flash | string | - |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| x | 4.41 | 4.61 | 4.61 | - |
| 闪光灯,值为auto, on, off |
合法值 | 兼容性 | 描述 | auto |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| x | 4.41 | 4.61 | 4.61 | x |
| 自动 | on |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| x | 4.41 | 4.61 | 4.61 | x |
| 开 | off |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| x | 4.41 | 4.61 | 4.61 | x |
| 关 | torch |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| x | 4.41 | 4.61 | 4.61 | x |
| |
|
device-position | string | - |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| x | 4.41 | 4.61 | 4.61 | - |
| 前置或后置,值为front, back |
合法值 | 兼容性 | 描述 | back |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| x | 4.41 | 4.61 | 4.61 | x |
| 后置 | front |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| x | 4.41 | 4.61 | 4.61 | x |
| 前置 |
|
@stop | (event: UniEvent) => void | - |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| x | 4.41 | 4.61 | 4.61 | - |
| 摄像头在非正常终止时触发,如退出后台等情况 |
@error | (event: UniEvent) => void | - |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| x | 4.41 | 4.61 | 4.61 | - |
| 用户不允许使用摄像头时触发 |
mode | string | - |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| x | 4.41 | x | x | x |
| (string) 应用模式,只在初始化时有效,不能动态变更 |
合法值 | 兼容性 | 描述 | normal |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| x | 4.41 | x | x | x |
| | scanCode |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| x | 4.41 | x | x | x |
| |
|
resolution | string | - |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| x | 4.41 | 4.61 | 4.61 | x |
| (string) 分辨率,不支持动态修改 |
合法值 | 兼容性 | 描述 | low |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| x | 4.41 | 4.61 | 4.61 | x |
| | medium |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| x | 4.41 | 4.61 | 4.61 | x |
| | high |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| x | 4.41 | 4.61 | 4.61 | x |
| |
|
frame-size | string | - |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| x | 4.41 | 4.61 | 4.61 | x |
| (string) 指定期望的相机帧数据尺寸 |
合法值 | 兼容性 | 描述 | small |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| x | 4.41 | 4.61 | 4.61 | x |
| | medium |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| x | 4.41 | 4.61 | 4.61 | x |
| | large |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| x | 4.41 | 4.61 | 4.61 | x |
| |
|
@initdone | eventhandle | - |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| x | 4.41 | 4.61 | 4.61 | x |
| - |
@scancode | eventhandle | - |
Web
|
微信小程序
|
Android
|
iOS
|
HarmonyOS
| x | 4.41 | x | x | x |
| - |