## uni.createCameraContext() @createcameracontext

<!-- UTSAPIJSON.createCameraContext.description -->

通过本API，可操作摄像头组件进行拍照、录像。

参考文档：
- [camera组件文档](../component/camera.md)

<!-- UTSAPIJSON.createCameraContext.compatibility -->

<!-- UTSAPIJSON.createCameraContext.param -->

<!-- UTSAPIJSON.createCameraContext.returnValue -->

<!-- UTSAPIJSON.createCameraContext.example -->

<!-- UTSAPIJSON.createCameraContext.tutorial -->

示例代码另见 [camera组件文档](../component/camera.md)
<!-- UTSAPIJSON.createCameraContext.example -->

<!-- UTSAPIJSON.general_type.name -->

<!-- UTSAPIJSON.general_type.param -->