Skip to main content
Version: 3.x

Taro.createCameraContext()

Creates the CameraContext object for the camera.

Reference

Type

() => CameraContext

Parameters

Sample Code

const cameraContext = Taro.createCameraContext()

API Support

APIWeChat Mini-ProgramH5React Native
Taro.createCameraContext✔️✔️