Table of Contents

Class ScanbotCameraView

Namespace
IO.Scanbot.Sdk.Camera
Assembly
BarcodeSDK.NET.Droid.dll
[Register("io/scanbot/sdk/camera/ScanbotCameraView", DoNotGenerateAcw = true)]
public sealed class ScanbotCameraView : FrameLayout, Drawable.ICallback, IAccessibilityEventSource, KeyEvent.ICallback, IViewManager, IViewParent, IScanbotCameraView, IUiZoomDelegate, IFinderViewAttributeHandler, IJavaObject, IJavaPeerable, IDisposable
Inheritance
ScanbotCameraView
Implements
Inherited Members

Constructors

ScanbotCameraView(Context)

[Register(".ctor", "(Landroid/content/Context;)V", "")]
public ScanbotCameraView(Context context)

Parameters

context Context

ScanbotCameraView(Context, IAttributeSet)

[Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")]
public ScanbotCameraView(Context context, IAttributeSet attrs)

Parameters

context Context
attrs IAttributeSet

Properties

A

[Register("a")]
public FinderViewAttributeHandlerImpl A { get; set; }

Property Value

FinderViewAttributeHandlerImpl

D

[Register("d")]
public SnapFlashView D { get; set; }

Property Value

SnapFlashView

DelayAfterFocusCompleteMs

public long DelayAfterFocusCompleteMs { get; set; }

Property Value

long

E

[Register("e")]
public bool E { get; set; }

Property Value

bool

F

[Register("f")]
public ScanbotCameraView.State F { get; set; }

Property Value

ScanbotCameraView.State

FinderViewId

public int FinderViewId { get; }

Property Value

int

G

[Register("g")]
public ICollection G { get; set; }

Property Value

ICollection

H

[Register("h")]
public ICollection H { get; set; }

Property Value

ICollection

I

[Register("i")]
public ILogger I { get; set; }

Property Value

ILogger

IsFlashEnabled

public bool IsFlashEnabled { get; }

Property Value

bool

J

[Register("j")]
public long J { get; set; }

Property Value

long

K

[Register("k")]
public ICaptureCallback K { get; set; }

Property Value

ICaptureCallback

PreviewBuffer

public IPreviewBuffer PreviewBuffer { get; }

Property Value

IPreviewBuffer

SupportedPictureSizes

public IList<Camera.Size> SupportedPictureSizes { get; }

Property Value

IList<Camera.Size>

SupportedPreviewSizes

public IList<Camera.Size> SupportedPreviewSizes { get; }

Property Value

IList<Camera.Size>

Methods

AddCameraStateCallback(ICameraStateCallback)

[Register("addCameraStateCallback", "(Lio/scanbot/sdk/camera/CameraStateCallback;)V", "")]
public void AddCameraStateCallback(ICameraStateCallback cameraStateCallback)

Parameters

cameraStateCallback ICameraStateCallback

AddFrameHandler(FrameHandler)

[Register("addFrameHandler", "(Lio/scanbot/sdk/camera/FrameHandler;)V", "")]
public void AddFrameHandler(FrameHandler frameHandler)

Parameters

frameHandler FrameHandler

AddPictureCallback(IBasePictureCallback)

[Register("addPictureCallback", "(Lio/scanbot/sdk/camera/BasePictureCallback;)V", "")]
public void AddPictureCallback(IBasePictureCallback pictureCallback)

Parameters

pictureCallback IBasePictureCallback

AddTakePictureCallback(ICameraTakePictureCallback)

[Register("addTakePictureCallback", "(Lio/scanbot/sdk/camera/CameraTakePictureCallback;)V", "")]
public void AddTakePictureCallback(ICameraTakePictureCallback cameraTakePictureCallback)

Parameters

cameraTakePictureCallback ICameraTakePictureCallback

AutoFocus()

[Register("autoFocus", "()V", "")]
public void AutoFocus()

ContinuousFocus()

[Register("continuousFocus", "()V", "")]
public void ContinuousFocus()

GetAttachedFrameHandler(Class)

[Register("getAttachedFrameHandler", "(Ljava/lang/Class;)Lio/scanbot/sdk/camera/FrameHandler;", "")]
[JavaTypeParameters(new string[] { "T extends io.scanbot.sdk.camera.FrameHandler" })]
public Object GetAttachedFrameHandler(Class clazz)

Parameters

clazz Class

Returns

Object

LockMinFocusDistance(bool)

[Register("lockMinFocusDistance", "(Z)V", "")]
public void LockMinFocusDistance(bool @lock)

Parameters

lock bool

LockToLandscape(bool)

[Register("lockToLandscape", "(Z)V", "")]
public void LockToLandscape(bool lockPicture)

Parameters

lockPicture bool

LockToPortrait(bool)

[Register("lockToPortrait", "(Z)V", "")]
public void LockToPortrait(bool lockPicture)

Parameters

lockPicture bool

OnDetachedFromWindow()

[Register("onDetachedFromWindow", "()V", "")]
public void OnDetachedFromWindow()

OnPause()

[Register("onPause", "()V", "")]
public void OnPause()

OnResume()

[Register("onResume", "()V", "")]
public void OnResume()

RemoveCameraStateCallback(ICameraStateCallback)

[Register("removeCameraStateCallback", "(Lio/scanbot/sdk/camera/CameraStateCallback;)V", "")]
public void RemoveCameraStateCallback(ICameraStateCallback cameraStateCallback)

Parameters

cameraStateCallback ICameraStateCallback

RemoveFrameHandler(FrameHandler)

[Register("removeFrameHandler", "(Lio/scanbot/sdk/camera/FrameHandler;)V", "")]
public void RemoveFrameHandler(FrameHandler frameHandler)

Parameters

frameHandler FrameHandler

RemovePictureCallback(IBasePictureCallback)

[Register("removePictureCallback", "(Lio/scanbot/sdk/camera/BasePictureCallback;)V", "")]
public void RemovePictureCallback(IBasePictureCallback pictureCallback)

Parameters

pictureCallback IBasePictureCallback

RemoveTakePictureCallback(ICameraTakePictureCallback)

[Register("removeTakePictureCallback", "(Lio/scanbot/sdk/camera/CameraTakePictureCallback;)V", "")]
public void RemoveTakePictureCallback(ICameraTakePictureCallback cameraTakePictureCallback)

Parameters

cameraTakePictureCallback ICameraTakePictureCallback

RestartPreview()

[Register("restartPreview", "()V", "")]
public void RestartPreview()

SetAutoFocusOnTouch(bool)

[Register("setAutoFocusOnTouch", "(Z)V", "")]
public void SetAutoFocusOnTouch(bool autoFocusOnTouch)

Parameters

autoFocusOnTouch bool

SetAutoFocusSound(bool)

[Register("setAutoFocusSound", "(Z)V", "")]
public void SetAutoFocusSound(bool enabled)

Parameters

enabled bool

SetCameraModule(CameraModule)

[Register("setCameraModule", "(Lio/scanbot/sdk/camera/CameraModule;)V", "")]
public void SetCameraModule(CameraModule cameraModule)

Parameters

cameraModule CameraModule

SetCameraOpenCallback(ICameraOpenCallback)

[Register("setCameraOpenCallback", "(Lio/scanbot/sdk/camera/CameraOpenCallback;)V", "")]
public void SetCameraOpenCallback(ICameraOpenCallback cameraOpenCallback)

Parameters

cameraOpenCallback ICameraOpenCallback

SetCaptureCallback(ICaptureCallback)

[Register("setCaptureCallback", "(Lio/scanbot/sdk/camera/CaptureCallback;)V", "")]
public void SetCaptureCallback(ICaptureCallback captureCallback)

Parameters

captureCallback ICaptureCallback

SetForceMaxSnappingQuality(bool)

[Register("setForceMaxSnappingQuality", "(Z)V", "")]
public void SetForceMaxSnappingQuality(bool enabled)

Parameters

enabled bool

SetForceMaxSnappingSize(bool)

[Register("setForceMaxSnappingSize", "(Z)V", "")]
public void SetForceMaxSnappingSize(bool enabled)

Parameters

enabled bool

SetPhysicalZoom(float)

[Register("setPhysicalZoom", "(F)V", "")]
public void SetPhysicalZoom(float zoomLevel)

Parameters

zoomLevel float

SetPhysicalZoomRange(ZoomRange)

[Register("setPhysicalZoomRange", "(Lio/scanbot/sdk/camera/ZoomRange;)V", "")]
public void SetPhysicalZoomRange(ZoomRange zoomRange)

Parameters

zoomRange ZoomRange

SetPictureSize(Size)

[Register("setPictureSize", "(Landroid/hardware/Camera$Size;)V", "")]
public void SetPictureSize(Camera.Size pictureSize)

Parameters

pictureSize Camera.Size

SetPreviewMode(CameraPreviewMode)

[Register("setPreviewMode", "(Lio/scanbot/sdk/camera/CameraPreviewMode;)V", "")]
public void SetPreviewMode(CameraPreviewMode mode)

Parameters

mode CameraPreviewMode

SetPreviewSize(Size)

[Register("setPreviewSize", "(Landroid/hardware/Camera$Size;)V", "")]
public void SetPreviewSize(Camera.Size previewSize)

Parameters

previewSize Camera.Size

SetShutterSound(bool)

[Register("setShutterSound", "(Z)V", "")]
public void SetShutterSound(bool enabled)

Parameters

enabled bool

SetSnappingAutoAdjustment(bool)

[Register("setSnappingAutoAdjustment", "(Z)V", "")]
public void SetSnappingAutoAdjustment(bool enabled)

Parameters

enabled bool

SetUiZoomLevel(float)

[Register("setUiZoomLevel", "(F)V", "")]
public void SetUiZoomLevel(float zoomLevel)

Parameters

zoomLevel float

StartPreview()

[Register("startPreview", "()V", "")]
public void StartPreview()

StopPreview()

[Register("stopPreview", "()V", "")]
public void StopPreview()

TakePicture(bool)

[Register("takePicture", "(Z)V", "")]
public void TakePicture(bool acquireFocus)

Parameters

acquireFocus bool

TakePicture(bool, bool)

[Register("takePicture", "(ZZ)V", "")]
public void TakePicture(bool acquireFocus, bool isCapturedAutomatically)

Parameters

acquireFocus bool
isCapturedAutomatically bool

UnlockOrientation()

[Register("unlockOrientation", "()V", "")]
public void UnlockOrientation()

UseFlash(bool)

[Register("useFlash", "(Z)V", "")]
public void UseFlash(bool useFlash)

Parameters

useFlash bool

UsePinchToZoom(bool)

[Register("usePinchToZoom", "(Z)V", "")]
public void UsePinchToZoom(bool usePinchToZoom)

Parameters

usePinchToZoom bool