DCVCameraView Class
The UI component of Dynamsoft Capture Vision. It displays the video streaming and other UI elements.
Property | Description |
---|---|
overlayVisible |
A property that indicates whether the overlays are visible. |
torchButton |
The property for users to define a torch button. |
overlayVisible
A property that indicates whether the overlays
are visible.
set overlayVisible(bool isVisible)
Code Snippet
_cameraView.overlayVisible = true;
torchButton
The property for users to define a torch button. Users can define the location, image and visibility of the button.
set torchButton(TorchButton torchButton)
Code Snippet
_cameraView.torchButton = TorchButton(
rect: Rect(x: 50, y: 50, width: 100, height: 100),
torchOnImage: 'assets/abc.png',
torchOffImage: null);