Resource Base
Table of contents

Thanks for downloading Dynamsoft Barcode Reader Package!

Your download will start shortly. If your download does not begin, click here to retry.

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

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    • Version 2.x
      • Version 2.2.10
      • Version 2.0.21
      • Version 2.0.20
      • Version 2.0.10
      • Version 2.2.10
      • Version 2.0.21
      • Version 2.0.20
      • Version 2.0.10
    • Version 1.x
      • Version 1.2.1
      • Version 1.2.0
      • Version 1.1.0
      • Version 1.0.0
      • Version 1.0.4
      • Version 1.0.3
      • Version 1.0.2
      • Version 1.0.1
      • Version 1.0.0
      • Version 1.1.11
      • Version 1.1.9
      • Version 1.1.8
      • Version 1.1.7
      • Version 1.1.6
      • Version 1.1.5
      • Version 1.1.4
      • Version 1.1.3
      • Version 1.1.2
      • Version 1.1.1
      • Version 1.1.0
      • Version 1.0.0
      • Version 1.0.4
      • Version 1.0.3
      • Version 1.0.2
      • Version 1.0.1
      • Version 1.0.0
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support