Table of Contents

Class ScanbotCameraView

Namespace
IO.Scanbot.Sdk.Camera
Assembly
DocumentSDK.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

DelayAfterFocusCompleteMs

public long DelayAfterFocusCompleteMs { get; set; }

Property Value

long

Dwa

[Register("dwa")]
public ZoomRange Dwa { get; set; }

Property Value

ZoomRange

Dwc

[Register("dwc")]
public ICaptureCallback Dwc { get; set; }

Property Value

ICaptureCallback

Dwd

[Register("dwd")]
public ILifecycleOwner Dwd { get; set; }

Property Value

ILifecycleOwner

Dwg

[Register("dwg")]
public bool Dwg { get; set; }

Property Value

bool

Dwh

[Register("dwh")]
public ScanbotCameraView.State Dwh { get; set; }

Property Value

ScanbotCameraView.State

Dwj

[Register("dwj")]
public ILogger Dwj { get; set; }

Property Value

ILogger

Dwl

[Register("dwl")]
public long Dwl { get; set; }

Property Value

long

Dwp

[Register("dwp")]
public LinkedHashSet Dwp { get; set; }

Property Value

LinkedHashSet

Dwr

[Register("dwr")]
public ScanbotCameraXView.IPinchToZoomCallback Dwr { get; set; }

Property Value

ScanbotCameraXView.IPinchToZoomCallback

Dws

[Register("dws")]
public SnapFlashView Dws { get; set; }

Property Value

SnapFlashView

Dwv

[Register("dwv")]
public LinkedHashSet Dwv { get; set; }

Property Value

LinkedHashSet

FinderViewId

public int FinderViewId { get; }

Property Value

int

IsFlashEnabled

public bool IsFlashEnabled { get; }

Property Value

bool

LifecycleOwner

public ILifecycleOwner LifecycleOwner { get; set; }

Property Value

ILifecycleOwner

PinchToZoomListener

public ScanbotCameraXView.IPinchToZoomCallback PinchToZoomListener { get; set; }

Property Value

ScanbotCameraXView.IPinchToZoomCallback

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>

SupportedZoomRange

public ZoomRange SupportedZoomRange { get; set; }

Property Value

ZoomRange

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()

Dwk()

[Register("dwk", "()V", "")]
public void Dwk()

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

IsSnapAnimationEnabled(bool)

[Register("isSnapAnimationEnabled", "(Z)V", "")]
public void IsSnapAnimationEnabled(bool enabled)

Parameters

enabled bool

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()

OnLayout(bool, int, int, int, int)

Called from layout when this view should assign a size and position to each of its children.

[Register("onLayout", "(ZIIII)V", "")]
protected override void OnLayout(bool changed, int left, int top, int right, int bottom)

Parameters

changed bool

This is a new size or position for this view

left int

Left position, relative to parent

top int

Top position, relative to parent

right int

Right position, relative to parent

bottom int

Bottom position, relative to parent

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

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()

SetAnalyzerFpsLimit(float)

[Register("setAnalyzerFpsLimit", "(F)V", "")]
public void SetAnalyzerFpsLimit(float fps)

Parameters

fps float

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

SetLiveScannerResolution(CameraLiveScannerResolution)

[Register("setLiveScannerResolution", "(Lio/scanbot/sdk/ui/camera/CameraLiveScannerResolution;)V", "")]
public void SetLiveScannerResolution(CameraLiveScannerResolution scannerResolution)

Parameters

scannerResolution CameraLiveScannerResolution

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

SetSquareFrameSizeEnabled(bool)

[Register("setSquareFrameSizeEnabled", "(Z)V", "")]
public void SetSquareFrameSizeEnabled(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