Class ScanbotCameraXView
- Namespace
- IO.Scanbot.Sdk.UI.Camera
- Assembly
- BarcodeSDK.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
-
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
A0
[Register("A0")]
public const double A0 = 1.6666666666666667
Field Value
- double
B0
[Register("B0")]
public const double B0 = 0.05
Field Value
- double
C0
[Register("C0")]
public const double C0 = 1.7777777777777777
Field Value
- double
D0
[Register("D0")]
public const double D0 = 1.3333333333333333
Field Value
- double
E0
[Register("E0")]
public const double E0 = 1
Field Value
- double
F0
[Register("F0")]
public const string F0 = "Xiaomi"
Field Value
- string
S0
[Register("s0")]
public const string S0 = "ScanbotCameraXView"
Field Value
- string
T0
[Register("t0")]
public const int T0 = 1
Field Value
- int
U0
[Register("u0")]
public const int U0 = 100
Field Value
- int
V0
[Register("v0")]
public const int V0 = 1000
Field Value
- int
W0
[Register("w0")]
public const int W0 = 75
Field Value
- int
X0
[Register("x0")]
public const long X0 = 5
Field Value
- long
Y0
[Register("y0")]
public const long Y0 = 250
Field Value
- long
Z0
[Register("z0")]
public const int Z0 = 6481
Field Value
- int
Properties
CameraSensorOrientation
public Integer CameraSensorOrientation { get; set; }
Property Value
- Integer
DelayAfterFocusCompleteMs
public long DelayAfterFocusCompleteMs { get; set; }
Property Value
- long
FinderViewId
public int FinderViewId { get; }
Property Value
- int
G
[Register("g")]
public IList<Size> G { get; set; }
Property Value
- IList<Size>
G0
[Register("G0")]
public static IList<int> G0 { get; }
Property Value
- IList<int>
H
[Register("h")]
public ZoomRange H { get; set; }
Property Value
- ZoomRange
H0
[Register("h0")]
public long H0 { get; set; }
Property Value
- long
I
[Register("i")]
public Integer I { get; set; }
Property Value
- Integer
I0
[Register("i0")]
public ILazy I0 { get; set; }
Property Value
- ILazy
IsFlashEnabled
public bool IsFlashEnabled { get; }
Property Value
- bool
J
[Register("j")]
public ScanbotCameraXView.IPinchToZoomCallback J { get; set; }
Property Value
- ScanbotCameraXView.IPinchToZoomCallback
J0
[Register("j0")]
public SnapFlashView J0 { get; set; }
Property Value
- SnapFlashView
K
[Register("k")]
public ICaptureCallback K { get; set; }
Property Value
- ICaptureCallback
K0
[Register("k0")]
public bool K0 { get; set; }
Property Value
- bool
L
[Register("l")]
public ILifecycleOwner L { get; set; }
Property Value
- ILifecycleOwner
L0
[Register("l0")]
public bool L0 { get; set; }
Property Value
- bool
LifecycleOwner
public ILifecycleOwner LifecycleOwner { get; set; }
Property Value
- ILifecycleOwner
M
[Register("m")]
public Size M { get; set; }
Property Value
- Size
M0
[Register("m0")]
public ThreadPoolExecutor M0 { get; set; }
Property Value
- ThreadPoolExecutor
MirrorAnalyzerFrame
public bool MirrorAnalyzerFrame { get; set; }
Property Value
- bool
N
[Register("n")]
public ScanbotCameraXView.UseCaseResolutionSize N { get; set; }
Property Value
- ScanbotCameraXView.UseCaseResolutionSize
N0
[Register("n0")]
public ThreadPoolExecutor N0 { get; set; }
Property Value
- ThreadPoolExecutor
O
[Register("o")]
public Size O { get; set; }
Property Value
- Size
O0
[Register("o0")]
public ThreadPoolExecutor O0 { get; set; }
Property Value
- ThreadPoolExecutor
P
[Register("p")]
public ScanbotCameraXView.UseCaseResolutionSize P { get; set; }
Property Value
- ScanbotCameraXView.UseCaseResolutionSize
PinchToZoomListener
public ScanbotCameraXView.IPinchToZoomCallback PinchToZoomListener { get; set; }
Property Value
- ScanbotCameraXView.IPinchToZoomCallback
Q
[Register("q")]
public Float Q { get; set; }
Property Value
- Float
R
[Register("r")]
public Integer R { get; set; }
Property Value
- Integer
R0
[Register("r0")]
public bool R0 { get; set; }
Property Value
- bool
S
[Register("s")]
public Size S { get; set; }
Property Value
- Size
SupportedZoomRange
public ZoomRange SupportedZoomRange { get; set; }
Property Value
- ZoomRange
T
[Register("t")]
public bool T { get; set; }
Property Value
- bool
U
[Register("u")]
public ILogger U { get; set; }
Property Value
- ILogger
V
[Register("v")]
public ImageView V { get; set; }
Property Value
- ImageView
W
[Register("w")]
public PreviewView W { get; set; }
Property Value
- PreviewView
X
[Register("x")]
public ProcessCameraProvider X { get; set; }
Property Value
- ProcessCameraProvider
Y
[Register("y")]
public CameraManager Y { get; set; }
Property Value
- CameraManager
Z
[Register("z")]
public bool Z { get; set; }
Property Value
- bool
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, IImageOutputConfigBuilder, UseCaseResolutionSize, IList, int)
[Register("a", "(Lio/scanbot/sdk/ui/camera/ScanbotCameraXView;Landroidx/camera/core/impl/ImageOutputConfig$Builder;Lio/scanbot/sdk/ui/camera/ScanbotCameraXView$UseCaseResolutionSize;Ljava/util/List;I)Ljava/util/List;", "")]
public static IList A(ScanbotCameraXView this_0, IImageOutputConfigBuilder _builder, ScanbotCameraXView.UseCaseResolutionSize _resolutionLimit, IList sizes, int rotationDegrees)
Parameters
this_0 ScanbotCameraXView
_builder IImageOutputConfigBuilder
_resolutionLimit ScanbotCameraXView.UseCaseResolutionSize
sizes IList
rotationDegrees int
Returns
- IList
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, IImageOutputConfigBuilder, UseCaseResolutionSize, IList, int)
[Register("b", "(Lio/scanbot/sdk/ui/camera/ScanbotCameraXView;Landroidx/camera/core/impl/ImageOutputConfig$Builder;Lio/scanbot/sdk/ui/camera/ScanbotCameraXView$UseCaseResolutionSize;Ljava/util/List;I)Ljava/util/List;", "")]
public static IList B(ScanbotCameraXView this_0, IImageOutputConfigBuilder _builder, ScanbotCameraXView.UseCaseResolutionSize _resolutionLimit, IList sizes, int rotationDegrees)
Parameters
this_0 ScanbotCameraXView
_builder IImageOutputConfigBuilder
_resolutionLimit ScanbotCameraXView.UseCaseResolutionSize
sizes IList
rotationDegrees int
Returns
- IList
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
F(ScanbotCameraXView)
[Register("f", "(Lio/scanbot/sdk/ui/camera/ScanbotCameraXView;)V", "")]
public static void F(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[]
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
OnAttachedToWindow()
[Register("onAttachedToWindow", "()V", "")]
public void OnAttachedToWindow()
OnConfigurationChanged(Configuration)
[Register("onConfigurationChanged", "(Landroid/content/res/Configuration;)V", "")]
public void OnConfigurationChanged(Configuration newConfig)
Parameters
newConfig Configuration
OnDetachedFromWindow()
[Register("onDetachedFromWindow", "()V", "")]
public void OnDetachedFromWindow()
OnSizeChanged(int, int, int, int)
[Register("onSizeChanged", "(IIII)V", "")]
public void OnSizeChanged(int w, int h, int oldw, int oldh)
Parameters
w int
h int
oldw int
oldh int
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()
SetAnalyzerEnabled(bool)
[Register("setAnalyzerEnabled", "(Z)V", "")]
public void SetAnalyzerEnabled(bool enabled)
Parameters
enabled bool
SetAnalyzerFpsLimit(float)
[Register("setAnalyzerFpsLimit", "(F)V", "")]
public void SetAnalyzerFpsLimit(float fps)
Parameters
fps float
SetAnalyzerFrameResolutionLimit(UseCaseResolutionSize)
[Register("setAnalyzerFrameResolutionLimit", "(Lio/scanbot/sdk/ui/camera/ScanbotCameraXView$UseCaseResolutionSize;)V", "")]
public void SetAnalyzerFrameResolutionLimit(ScanbotCameraXView.UseCaseResolutionSize limit)
Parameters
limit ScanbotCameraXView.UseCaseResolutionSize
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
SetImageCaptureEnabled(bool)
[Register("setImageCaptureEnabled", "(Z)V", "")]
public void SetImageCaptureEnabled(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
SetPreviewFrameResolutionLimit(UseCaseResolutionSize)
[Register("setPreviewFrameResolutionLimit", "(Lio/scanbot/sdk/ui/camera/ScanbotCameraXView$UseCaseResolutionSize;)V", "")]
public void SetPreviewFrameResolutionLimit(ScanbotCameraXView.UseCaseResolutionSize limit)
Parameters
limit ScanbotCameraXView.UseCaseResolutionSize
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
SetPreviewRotation(int)
[Register("setPreviewRotation", "(I)V", "")]
public void SetPreviewRotation(int rotation)
Parameters
rotation int
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
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