Interface: CameraProps
CameraView.CameraProps
Properties for the camera.
<Camera
onFrame={(image: Image) => {
image.release();
}}
hideCaptureButton={true}
/>
Hierarchy
ViewProps
↳ CameraProps
Properties
facing
• Optional
facing: CameraFacing
Direction the camera faces relative to the device's screen.
Defined in
CameraView.tsx:83
hideCaptureButton
• Optional
hideCaptureButton: boolean
Hides the capture button if set to true
, otherwise the camera will show
a capture button.
Defined in
CameraView.tsx:70
targetResolution
• Optional
targetResolution: TargetResolution
Camera target resolution. It is not guaranteed that the camera runs at the set target resolution, and it might pick the closest available resolution.
Defined in
CameraView.tsx:78
Methods
onCapture
▸ Optional
onCapture(image
): void
Callback with an Image after capture button was pressed.
Parameters
Name | Type | Description |
---|---|---|
image | Image | An Image reference. |
Returns
void
Defined in
CameraView.tsx:90
onFrame
▸ Optional
onFrame(image
): void
Callback when the camera delivers an Image.
Needs to call Image.release to receive the next frame. The camera preview will continue to render updates, but new Image frames will be omitted until Image.release is called.
Parameters
Name | Type | Description |
---|---|---|
image | Image | An Image reference. |
Returns
void
Defined in
CameraView.tsx:105