CameraContext mc.createCameraContext()

创建 camera 上下文 CameraContext 对象。

返回值

类型 说明
CameraContext camera 组件上下文 context
const camera = mc.createCameraContext();
//拍照
camera.takePhoto({
    success: function(res){
        console.log(res.tempImagePath)
    }
});

results matching ""

    No results matching ""

    results matching ""

      No results matching ""