Table of Contents

Class ScanbotCameraWrapper

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

Constructors

ScanbotCameraWrapper(Context, IAttributeSet)

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

Parameters

context Context
attrs IAttributeSet

ScanbotCameraWrapper(nint, JniHandleOwnership)

protected ScanbotCameraWrapper(nint javaReference, JniHandleOwnership transfer)

Parameters

javaReference nint
transfer JniHandleOwnership

Properties

A

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

Property Value

IAttributeSet

Attrs

public IAttributeSet Attrs { get; }

Property Value

IAttributeSet

B

[Register("b")]
public IScanbotCameraView B { get; set; }

Property Value

IScanbotCameraView

C

[Register("c")]
public CustomCameraLifecycleOwner C { get; set; }

Property Value

CustomCameraLifecycleOwner

CustomCameraLifecycleOwner

public CustomCameraLifecycleOwner CustomCameraLifecycleOwner { get; set; }

Property Value

CustomCameraLifecycleOwner

D

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

Property Value

ILifecycleOwner

DelayAfterFocusCompleteMs

public virtual long DelayAfterFocusCompleteMs { get; set; }

Property Value

long

ExternalLifecycleOwner

public ILifecycleOwner ExternalLifecycleOwner { get; set; }

Property Value

ILifecycleOwner

IsFlashEnabled

public virtual bool IsFlashEnabled { get; }

Property Value

bool

ScanbotCameraView

public IScanbotCameraView ScanbotCameraView { get; set; }

Property Value

IScanbotCameraView

Methods

AddCameraStateCallback(ICameraStateCallback)

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

Parameters

cameraStateCallback ICameraStateCallback

AddFrameHandler(FrameHandler)

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

Parameters

frameHandler FrameHandler

AddPictureCallback(IBasePictureCallback)

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

Parameters

pictureCallback IBasePictureCallback

AddTakePictureCallback(ICameraTakePictureCallback)

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

Parameters

cameraTakePictureCallback ICameraTakePictureCallback

AutoFocus()

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

ContinuousFocus()

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

GetAttachedFrameHandler(Class)

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

Parameters

clazz Class

Returns

Object

LockMinFocusDistance(bool)

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

Parameters

lock bool

LockToLandscape(bool)

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

Parameters

lockPicture bool

LockToPortrait(bool)

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

Parameters

lockPicture bool

OnCloseCamera()

[Register("onCloseCamera", "()V", "")]
public void OnCloseCamera()

OnDetachedFromWindow()

[Register("onDetachedFromWindow", "()V", "GetOnDetachedFromWindowHandler")]
public virtual 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", "GetRemoveCameraStateCallback_Lio_scanbot_sdk_camera_CameraStateCallback_Handler")]
public virtual void RemoveCameraStateCallback(ICameraStateCallback cameraStateCallback)

Parameters

cameraStateCallback ICameraStateCallback

RemoveFrameHandler(FrameHandler)

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

Parameters

frameHandler FrameHandler

RemovePictureCallback(IBasePictureCallback)

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

Parameters

pictureCallback IBasePictureCallback

RemoveTakePictureCallback(ICameraTakePictureCallback)

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

Parameters

cameraTakePictureCallback ICameraTakePictureCallback

RestartPreview()

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

SetAutoFocusOnTouch(bool)

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

Parameters

autoFocusOnTouch bool

SetCameraModule(CameraModule)

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

Parameters

cameraModule CameraModule

SetCameraOpenCallback(ICameraOpenCallback)

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

Parameters

cameraOpenCallback ICameraOpenCallback

SetCaptureCallback(ICaptureCallback)

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

Parameters

captureCallback ICaptureCallback

SetForceMaxSnappingQuality(bool)

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

Parameters

enabled bool

SetForceMaxSnappingSize(bool)

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

Parameters

enabled bool

SetLifecycleOwner(ILifecycleOwner)

[Register("setLifecycleOwner", "(Landroidx/lifecycle/LifecycleOwner;)V", "")]
public void SetLifecycleOwner(ILifecycleOwner lifecycleOwner)

Parameters

lifecycleOwner ILifecycleOwner

SetPhysicalZoom(float)

[Register("setPhysicalZoom", "(F)V", "GetSetPhysicalZoom_FHandler")]
public virtual void SetPhysicalZoom(float zoomRatio)

Parameters

zoomRatio float

SetPhysicalZoomRange(ZoomRange)

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

Parameters

zoomRange ZoomRange

SetPreviewMode(CameraPreviewMode)

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

Parameters

mode CameraPreviewMode

SetShutterSound(bool)

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

Parameters

value bool

SetSnappingAutoAdjustment(bool)

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

Parameters

enabled bool

StartPreview()

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

StopPreview()

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

TakePicture(bool)

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

Parameters

acquireFocus bool

TakePicture(bool, bool)

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

Parameters

acquireFocus bool
isCapturedAutomatically bool

UnlockOrientation()

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

UseFlash(bool)

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

Parameters

useFlash bool

UsePinchToZoom(bool)

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

Parameters

usePinchToZoom bool