Skip to main content
Version: Next

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✔️✔️