Class DCVCameraView
DCVCameraView
is used to provide a UI for the camera display and any related UI elements. DCVCameraView
extends the View
class which is where the HorizontalOptions
and VerticalOptions
come from.
class DCVCameraView
Property | Description |
---|---|
OverlayVisible |
A property that indicates whether the overlays are visible. |
TorchButton |
A property that determines whether a torch button will be displayed on the DCVCameraView and how the torch button will be displayed. |
OverlayVisible
A property that indicates whether the overlays
are visible.
bool OverlayVisible;
Code Snippet
<local:DCVCameraView
OverlayVisible="True"
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand" >
TorchButton
A property that determines whether a torch button will be displayed on the DCVCameraView
and how the torch button will be displayed.
TorchButton Torchbutton;
Code Snippet
<local:DCVCameraView
OverlayVisible="True"
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand" >
<local:DCVCameraView.TorchButton>
<local:TorchButton
TorchOnImage="abc.png"
TorchOffImage="abc.png"
Visible="True">
<local:TorchButton.Location>
<local:Rect Width="50" Height="50" X="300" Y="300"></local:Rect>
</local:TorchButton.Location>
</local:TorchButton>
</local:DCVCameraView.TorchButton>
</local:DCVCameraView>
Note: Learn how to add an image in Xamarin.iOS and add an image in Xamarin.Android