Skip to end of metadata
Go to start of metadata

Represent the barcode reader view.

Definition

public class BarcodeReaderView : UIView, IBarcodeScanner<UIView>

Summary

The following table summarizes the members exposed in this class.

Public Constructors

BarcodeReaderView Constructor() Initializes a new instance of the BarcodeReaderView class.
BarcodeReaderView Constructor(IntPtr) Initializes a new instance of the BarcodeReaderView class.
BarcodeReaderView Constructor(CGRect) Initializes a new instance of the BarcodeReaderView class.

Public Properties

CancelButtonText Gets or sets the cancel button text.
CustomOverlayView Gets or sets the custom overlay view.
FlashButtonText Gets or sets the flash button text.
FooterText Gets or sets the footer text.
HeaderText Gets or sets the header text.
IsAnalyzing Gets a value indicating whether this instance is analyzing.
IsTorchOn Gets a value indicating whether the flash is on.
ScanningOptions Gets the scanning options.
UseCustomOverlayView Gets or sets a value indicating whether use custom overlay view.

Public Methods

AutoFocus() Automatics the focus.
DidRotate(UIInterfaceOrientation) Dids the rotate.
Focus(PointF) Focuses the specified point of interest.
PauseAnalysis() Pauses the analysis.
ResizePreview(UIInterfaceOrientation) Resizes the preview.
ResumeAnalysis() Resumes the analysis.
SetTorch(bool) Sets the torch.
StartScanning(MobileBarcodeScanningOptions, Action<Result>) Starts the scanning.
StartScanning(Action<Result>) Starts the scanning.
StopScanning() Stops the scanning.
ToggleTorch() Toggles the torch.

Events

OnScannerSetupComplete Occurs when [on scanner setup complete].

Public Constructors

public BarcodeReaderView()

Initializes a new instance of the BarcodeReaderView class.

public BarcodeReaderView(IntPtr handle)

Initializes a new instance of the BarcodeReaderView class.

Parameters

handle The handle.

public BarcodeReaderView(CGRect frame)

Initializes a new instance of the BarcodeReaderView class.

Parameters

frame The frame.

Public Properties

public string CancelButtonText { get; set; }

Gets or sets the cancel button text.

public UIView CustomOverlayView { get; set; }

Gets or sets the custom overlay view.

public string FlashButtonText { get; set; }

Gets or sets the flash button text.

public string FooterText { get; set; }

Gets or sets the footer text.

public string HeaderText { get; set; }

Gets or sets the header text.

public bool IsAnalyzing { get; }

Gets a value indicating whether this instance is analyzing.

public bool IsTorchOn { get; }

Gets a value indicating whether the flash is on.

public MobileBarcodeScanningOptions ScanningOptions { get; }

Gets the scanning options.

public bool UseCustomOverlayView { get; set; }

Gets or sets a value indicating whether use custom overlay view.

Public Methods

public void AutoFocus()

Automatics the focus.

public void DidRotate(UIInterfaceOrientation orientation)

Dids the rotate.

Parameters

orientation The orientation.

public void Focus(PointF pointOfInterest)

Focuses the specified point of interest.

Parameters

pointOfInterest The point of interest.

public void PauseAnalysis()

Pauses the analysis.

public void ResizePreview(UIInterfaceOrientation orientation)

Resizes the preview.

Parameters

orientation The orientation.

public void ResumeAnalysis()

Resumes the analysis.

public void SetTorch(bool on)

Sets the torch.

Parameters

on True if flash will be set to on.

public void StartScanning(MobileBarcodeScanningOptions options, Action<Result> callback)

Starts the scanning.

Parameters

options The options.
callback The callback.

public void StartScanning(Action<Result> callback)

Starts the scanning.

Parameters

callback The callback.

public void StopScanning()

Stops the scanning.

public void ToggleTorch()

Toggles the torch.

Events

public event ScannerSetupCompleteDelegate OnScannerSetupComplete

Occurs when [on scanner setup complete].

  • No labels