CameraView
The CameraView class is used to display the camera preview and provides UI controlling APIs. Users can add interactable UI elements on the view.
Definition
Namespace: Dynamsoft.CameraEnhancer.Maui
Assembly: Dynamsoft.CameraEnhancer.Maui
class CameraView : View
Methods & Properties
| Method | Description |
|---|---|
CameraView |
The constructor. |
GetDrawingLayer |
Get the specified DrawingLayer. |
| Property | Type | Description |
|---|---|---|
CameraToggleButton |
CameraToggleButton | The property that defines a camera toggle button. User can click the button to switch between the front and back forward cameras. |
CameraToggleButtonVisible |
bool | The property that defines whether the camera toggle button is visible. |
TorchButton |
TorchButton | The property that defines a torch button. User can click the button to turn on/off the torch. |
TorchButtonVisible |
bool | The property that defines whether the torch button is visible. |
ScanRegionMaskVisible |
bool | The property that defines whether the scan region mask is visible. |
ScanLaserVisible |
bool | The property that defines whether the scan laser is visible. |
CameraView
The constructor. Create an instance of CameraView.
CameraView();
GetDrawingLayer
Get the specified DrawingLayer.
DrawingLayer GetDrawingLayer(EnumDrawingLayerId id);
Parameters
[in] id: One of the EnumDrawingLayerId member that specifies the ID of the layer that you want to get.
Return Value
The DrawingLayer instance.
CameraToggleButton
The property that defines a torch button. User can click the button to switch between the front and back forward cameras. View CameraToggleButton class for how more information about how to configure the camera toggle button.
CameraToggleButton CameraToggleButton { get; set; }
CameraToggleButtonVisible
The property that defines whether the camera toggle button is visible.
bool CameraToggleButtonVisible { get; set; }
TorchButton
The property that defines a torch button. User can click the button to turn on/off the torch. View TorchButton class for how more information about how to configure the torch button.
TorchButton TorchButton { get; set; }
TorchButtonVisible
The property that defines whether the torch button is visible.
bool TorchButtonVisible { get; set; }
ScanRegionMaskVisible
The property that defines whether the scan region mask is visible.
bool ScanRegionMaskVisible { get; set; }
ScanLaserVisible
The property that defines whether the scan laser is visible.
bool ScanLaserVisible { get; set; }