Table of Contents

Class ScanbotCameraXView

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

Constructors

ScanbotCameraXView(Context)

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

Parameters

context Context

ScanbotCameraXView(Context, IAttributeSet)

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

Parameters

context Context
attrs IAttributeSet

Fields

H0

[Register("h0")]
public const string H0 = "ScanbotCameraXView"

Field Value

string

I0

[Register("i0")]
public const int I0 = 1

Field Value

int

J0

[Register("j0")]
public const int J0 = 100

Field Value

int

K0

[Register("k0")]
public const int K0 = 1000

Field Value

int

L0

[Register("l0")]
public const int L0 = 75

Field Value

int

M0

[Register("m0")]
public const long M0 = 5

Field Value

long

N0

[Register("n0")]
public const long N0 = 250

Field Value

long

O0

[Register("o0")]
public const double O0 = 1.6666666666666667

Field Value

double

P0

[Register("p0")]
public const double P0 = 0.05

Field Value

double

Q0

[Register("q0")]
public const double Q0 = 1.7777777777777777

Field Value

double

R0

[Register("r0")]
public const double R0 = 1.3333333333333333

Field Value

double

S0

[Register("s0")]
public const double S0 = 1

Field Value

double

T0

[Register("t0")]
public const string T0 = "Xiaomi"

Field Value

string

Properties

A0

[Register("a0")]
public SnapFlashView A0 { get; set; }

Property Value

SnapFlashView

B0

[Register("b0")]
public ThreadPoolExecutor B0 { get; set; }

Property Value

ThreadPoolExecutor

C0

[Register("c0")]
public ThreadPoolExecutor C0 { get; set; }

Property Value

ThreadPoolExecutor

D0

[Register("d0")]
public ThreadPoolExecutor D0 { get; set; }

Property Value

ThreadPoolExecutor

DelayAfterFocusCompleteMs

public long DelayAfterFocusCompleteMs { get; set; }

Property Value

long

F

[Register("f")]
public IList<Size> F { get; set; }

Property Value

IList<Size>

FinderViewId

public int FinderViewId { get; }

Property Value

int

G

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

Property Value

ZoomRange

G0

[Register("g0")]
public bool G0 { get; set; }

Property Value

bool

H

[Register("h")]
public ScanbotCameraXView.IPinchToZoomCallback H { get; set; }

Property Value

ScanbotCameraXView.IPinchToZoomCallback

I

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

Property Value

ICaptureCallback

IsFlashEnabled

public bool IsFlashEnabled { get; }

Property Value

bool

J

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

Property Value

ILifecycleOwner

K

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

Property Value

Size

L

[Register("l")]
public Size L { get; set; }

Property Value

Size

LifecycleOwner

public ILifecycleOwner LifecycleOwner { get; set; }

Property Value

ILifecycleOwner

M

[Register("m")]
public Size M { get; set; }

Property Value

Size

N

[Register("n")]
public ILogger N { get; set; }

Property Value

ILogger

O

[Register("o")]
public ImageView O { get; set; }

Property Value

ImageView

P

[Register("p")]
public PreviewView P { get; set; }

Property Value

PreviewView

PinchToZoomListener

public ScanbotCameraXView.IPinchToZoomCallback PinchToZoomListener { get; set; }

Property Value

ScanbotCameraXView.IPinchToZoomCallback

Q

[Register("q")]
public ProcessCameraProvider Q { get; set; }

Property Value

ProcessCameraProvider

R

[Register("r")]
public CameraManager R { get; set; }

Property Value

CameraManager

S

[Register("s")]
public bool S { get; set; }

Property Value

bool

SupportedZoomRange

public ZoomRange SupportedZoomRange { get; set; }

Property Value

ZoomRange

T

[Register("t")]
public Paint T { get; set; }

Property Value

Paint

U

[Register("u")]
public Rect U { get; set; }

Property Value

Rect

U0

[Register("u0")]
public static IList<int> U0 { get; }

Property Value

IList<int>

V

[Register("v")]
public bool V { get; set; }

Property Value

bool

W

[Register("w")]
public Size W { get; set; }

Property Value

Size

Y

[Register("y")]
public AtomicBoolean Y { get; set; }

Property Value

AtomicBoolean

Z

[Register("z")]
public ScaleGestureDetector Z { get; set; }

Property Value

ScaleGestureDetector

Methods

A(IListenableFuture, ScanbotCameraXView)

[Register("a", "(Lcom/google/common/util/concurrent/ListenableFuture;Lio/scanbot/sdk/ui/camera/ScanbotCameraXView;)V", "")]
public static void A(IListenableFuture _future, ScanbotCameraXView this_0)

Parameters

_future IListenableFuture
this_0 ScanbotCameraXView

A(IListenableFuture, ObjectRef, ScanbotCameraXView)

[Register("a", "(Lcom/google/common/util/concurrent/ListenableFuture;Lkotlin/jvm/internal/Ref$ObjectRef;Lio/scanbot/sdk/ui/camera/ScanbotCameraXView;)V", "")]
public static void A(IListenableFuture _extensionsManagerFuture, Ref.ObjectRef _cameraSelector, ScanbotCameraXView this_0)

Parameters

_extensionsManagerFuture IListenableFuture
_cameraSelector Ref.ObjectRef
this_0 ScanbotCameraXView

A(ScanbotCameraXView)

[Register("a", "(Lio/scanbot/sdk/ui/camera/ScanbotCameraXView;)V", "")]
public static void A(ScanbotCameraXView this_0)

Parameters

this_0 ScanbotCameraXView

A(ScanbotCameraXView, View, MotionEvent)

[Register("a", "(Lio/scanbot/sdk/ui/camera/ScanbotCameraXView;Landroid/view/View;Landroid/view/MotionEvent;)Z", "")]
public static bool A(ScanbotCameraXView this_0, View p1, MotionEvent e)

Parameters

this_0 ScanbotCameraXView
p1 View
e MotionEvent

Returns

bool

A(ScanbotCameraXView, IListenableFuture)

[Register("a", "(Lio/scanbot/sdk/ui/camera/ScanbotCameraXView;Lcom/google/common/util/concurrent/ListenableFuture;)V", "")]
public static void A(ScanbotCameraXView this_0, IListenableFuture _cameraProviderFuture)

Parameters

this_0 ScanbotCameraXView
_cameraProviderFuture IListenableFuture

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

B(ScanbotCameraXView)

[Register("b", "(Lio/scanbot/sdk/ui/camera/ScanbotCameraXView;)V", "")]
public static void B(ScanbotCameraXView this_0)

Parameters

this_0 ScanbotCameraXView

B(ScanbotCameraXView, IListenableFuture)

[Register("b", "(Lio/scanbot/sdk/ui/camera/ScanbotCameraXView;Lcom/google/common/util/concurrent/ListenableFuture;)V", "")]
public static void B(ScanbotCameraXView this_0, IListenableFuture _future)

Parameters

this_0 ScanbotCameraXView
_future IListenableFuture

C(ScanbotCameraXView)

[Register("c", "(Lio/scanbot/sdk/ui/camera/ScanbotCameraXView;)V", "")]
public static void C(ScanbotCameraXView this_0)

Parameters

this_0 ScanbotCameraXView

ContinuousFocus()

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

D(ScanbotCameraXView)

[Register("d", "(Lio/scanbot/sdk/ui/camera/ScanbotCameraXView;)V", "")]
public static void D(ScanbotCameraXView this_0)

Parameters

this_0 ScanbotCameraXView

DispatchDraw(Canvas)

[Register("dispatchDraw", "(Landroid/graphics/Canvas;)V", "")]
public void DispatchDraw(Canvas canvas)

Parameters

canvas Canvas

E(ScanbotCameraXView)

[Register("e", "(Lio/scanbot/sdk/ui/camera/ScanbotCameraXView;)V", "")]
public static void E(ScanbotCameraXView this_0)

Parameters

this_0 ScanbotCameraXView

FreezePreview()

[Register("freezePreview", "()V", "")]
public void FreezePreview()

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

GetSupportedPictureSizes()

[Register("getSupportedPictureSizes", "()[Landroid/util/Size;", "")]
public Size[] GetSupportedPictureSizes()

Returns

Size[]

GetSupportedPreviewSizes()

[Register("getSupportedPreviewSizes", "()[Landroid/util/Size;", "")]
public Size[] GetSupportedPreviewSizes()

Returns

Size[]

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

OnAttachedToWindow()

[Register("onAttachedToWindow", "()V", "")]
public void OnAttachedToWindow()

OnDetachedFromWindow()

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

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

SetAnalyzerFrameSize(Size)

[Register("setAnalyzerFrameSize", "(Landroid/util/Size;)V", "")]
public void SetAnalyzerFrameSize(Size frameSize)

Parameters

frameSize Size

SetAutoFocusOnTouch(bool)

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

Parameters

autoFocusOnTouch bool

SetCameraFrameSize(Size)

[Register("setCameraFrameSize", "(Landroid/util/Size;)V", "")]
public void SetCameraFrameSize(Size frameSize)

Parameters

frameSize Size

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

Parameters

zoom float

SetPhysicalZoomRange(ZoomRange)

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

Parameters

zoomRange ZoomRange

SetPictureSize(Size)

[Register("setPictureSize", "(Landroid/util/Size;)V", "")]
public void SetPictureSize(Size pictureSize)

Parameters

pictureSize Size

SetPreviewFrameSize(Size)

[Register("setPreviewFrameSize", "(Landroid/util/Size;)V", "")]
public void SetPreviewFrameSize(Size frameSize)

Parameters

frameSize Size

SetPreviewMode(CameraPreviewMode)

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

Parameters

previewMode CameraPreviewMode

SetShutterSound(bool)

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

Parameters

value bool

SetSnappingAutoAdjustment(bool)

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

Parameters

enabled bool

SetSupportedPictureSizes(Size[])

[Register("setSupportedPictureSizes", "([Landroid/util/Size;)V", "")]
public void SetSupportedPictureSizes(Size[] value)

Parameters

value Size[]

SetSupportedPreviewSizes(Size[])

[Register("setSupportedPreviewSizes", "([Landroid/util/Size;)V", "")]
public void SetSupportedPreviewSizes(Size[] value)

Parameters

value Size[]

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

UnfreezePreview()

[Register("unfreezePreview", "()V", "")]
public void UnfreezePreview()

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