Class ScanbotCameraView
[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
contextContext
ScanbotCameraView(Context, IAttributeSet)
[Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")]
public ScanbotCameraView(Context context, IAttributeSet attrs)
Parameters
contextContextattrsIAttributeSet
Properties
DelayAfterFocusCompleteMs
public long DelayAfterFocusCompleteMs { get; set; }
Property Value
Dwa
[Register("dwa")]
public ZoomRange Dwa { get; set; }
Property Value
Dwc
[Register("dwc")]
public ICaptureCallback Dwc { get; set; }
Property Value
Dwd
[Register("dwd")]
public ILifecycleOwner Dwd { get; set; }
Property Value
Dwg
[Register("dwg")]
public bool Dwg { get; set; }
Property Value
Dwh
[Register("dwh")]
public ScanbotCameraView.State Dwh { get; set; }
Property Value
Dwj
[Register("dwj")]
public ILogger Dwj { get; set; }
Property Value
Dwl
[Register("dwl")]
public long Dwl { get; set; }
Property Value
Dwp
[Register("dwp")]
public LinkedHashSet Dwp { get; set; }
Property Value
Dwr
[Register("dwr")]
public ScanbotCameraXView.IPinchToZoomCallback Dwr { get; set; }
Property Value
Dws
[Register("dws")]
public SnapFlashView Dws { get; set; }
Property Value
Dwv
[Register("dwv")]
public LinkedHashSet Dwv { get; set; }
Property Value
FinderViewId
public int FinderViewId { get; }
Property Value
IsFlashEnabled
public bool IsFlashEnabled { get; }
Property Value
LifecycleOwner
public ILifecycleOwner LifecycleOwner { get; set; }
Property Value
PinchToZoomListener
public ScanbotCameraXView.IPinchToZoomCallback PinchToZoomListener { get; set; }
Property Value
PreviewBuffer
public IPreviewBuffer PreviewBuffer { get; }
Property Value
SupportedPictureSizes
public IList<Camera.Size> SupportedPictureSizes { get; }
Property Value
SupportedPreviewSizes
public IList<Camera.Size> SupportedPreviewSizes { get; }
Property Value
SupportedZoomRange
public ZoomRange SupportedZoomRange { get; set; }
Property Value
Methods
AddCameraStateCallback(ICameraStateCallback)
[Register("addCameraStateCallback", "(Lio/scanbot/sdk/camera/CameraStateCallback;)V", "")]
public void AddCameraStateCallback(ICameraStateCallback cameraStateCallback)
Parameters
cameraStateCallbackICameraStateCallback
AddFrameHandler(FrameHandler)
[Register("addFrameHandler", "(Lio/scanbot/sdk/camera/FrameHandler;)V", "")]
public void AddFrameHandler(FrameHandler frameHandler)
Parameters
frameHandlerFrameHandler
AddPictureCallback(IBasePictureCallback)
[Register("addPictureCallback", "(Lio/scanbot/sdk/camera/BasePictureCallback;)V", "")]
public void AddPictureCallback(IBasePictureCallback pictureCallback)
Parameters
pictureCallbackIBasePictureCallback
AddTakePictureCallback(ICameraTakePictureCallback)
[Register("addTakePictureCallback", "(Lio/scanbot/sdk/camera/CameraTakePictureCallback;)V", "")]
public void AddTakePictureCallback(ICameraTakePictureCallback cameraTakePictureCallback)
Parameters
cameraTakePictureCallbackICameraTakePictureCallback
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
clazzClass
Returns
IsSnapAnimationEnabled(bool)
[Register("isSnapAnimationEnabled", "(Z)V", "")]
public void IsSnapAnimationEnabled(bool enabled)
Parameters
enabledbool
LockMinFocusDistance(bool)
[Register("lockMinFocusDistance", "(Z)V", "")]
public void LockMinFocusDistance(bool @lock)
Parameters
lockbool
LockToLandscape(bool)
[Register("lockToLandscape", "(Z)V", "")]
public void LockToLandscape(bool lockPicture)
Parameters
lockPicturebool
LockToPortrait(bool)
[Register("lockToPortrait", "(Z)V", "")]
public void LockToPortrait(bool lockPicture)
Parameters
lockPicturebool
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
changedboolThis is a new size or position for this view
leftintLeft position, relative to parent
topintTop position, relative to parent
rightintRight position, relative to parent
bottomintBottom position, relative to parent
Remarks
Portions of this page are modifications based on work created and shared by the
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
cameraStateCallbackICameraStateCallback
RemoveFrameHandler(FrameHandler)
[Register("removeFrameHandler", "(Lio/scanbot/sdk/camera/FrameHandler;)V", "")]
public void RemoveFrameHandler(FrameHandler frameHandler)
Parameters
frameHandlerFrameHandler
RemovePictureCallback(IBasePictureCallback)
[Register("removePictureCallback", "(Lio/scanbot/sdk/camera/BasePictureCallback;)V", "")]
public void RemovePictureCallback(IBasePictureCallback pictureCallback)
Parameters
pictureCallbackIBasePictureCallback
RemoveTakePictureCallback(ICameraTakePictureCallback)
[Register("removeTakePictureCallback", "(Lio/scanbot/sdk/camera/CameraTakePictureCallback;)V", "")]
public void RemoveTakePictureCallback(ICameraTakePictureCallback cameraTakePictureCallback)
Parameters
cameraTakePictureCallbackICameraTakePictureCallback
RestartPreview()
[Register("restartPreview", "()V", "")]
public void RestartPreview()
SetAnalyzerFpsLimit(float)
[Register("setAnalyzerFpsLimit", "(F)V", "")]
public void SetAnalyzerFpsLimit(float fps)
Parameters
fpsfloat
SetAutoFocusOnTouch(bool)
[Register("setAutoFocusOnTouch", "(Z)V", "")]
public void SetAutoFocusOnTouch(bool autoFocusOnTouch)
Parameters
autoFocusOnTouchbool
SetAutoFocusSound(bool)
[Register("setAutoFocusSound", "(Z)V", "")]
public void SetAutoFocusSound(bool enabled)
Parameters
enabledbool
SetCameraModule(CameraModule)
[Register("setCameraModule", "(Lio/scanbot/sdk/camera/CameraModule;)V", "")]
public void SetCameraModule(CameraModule cameraModule)
Parameters
cameraModuleCameraModule
SetCameraOpenCallback(ICameraOpenCallback)
[Register("setCameraOpenCallback", "(Lio/scanbot/sdk/camera/CameraOpenCallback;)V", "")]
public void SetCameraOpenCallback(ICameraOpenCallback cameraOpenCallback)
Parameters
cameraOpenCallbackICameraOpenCallback
SetCaptureCallback(ICaptureCallback)
[Register("setCaptureCallback", "(Lio/scanbot/sdk/camera/CaptureCallback;)V", "")]
public void SetCaptureCallback(ICaptureCallback captureCallback)
Parameters
captureCallbackICaptureCallback
SetForceMaxSnappingQuality(bool)
[Register("setForceMaxSnappingQuality", "(Z)V", "")]
public void SetForceMaxSnappingQuality(bool enabled)
Parameters
enabledbool
SetForceMaxSnappingSize(bool)
[Register("setForceMaxSnappingSize", "(Z)V", "")]
public void SetForceMaxSnappingSize(bool enabled)
Parameters
enabledbool
SetLiveScannerResolution(CameraLiveScannerResolution)
[Register("setLiveScannerResolution", "(Lio/scanbot/sdk/ui/camera/CameraLiveScannerResolution;)V", "")]
public void SetLiveScannerResolution(CameraLiveScannerResolution scannerResolution)
Parameters
scannerResolutionCameraLiveScannerResolution
SetPhysicalZoom(float)
[Register("setPhysicalZoom", "(F)V", "")]
public void SetPhysicalZoom(float zoomLevel)
Parameters
zoomLevelfloat
SetPhysicalZoomRange(ZoomRange)
[Register("setPhysicalZoomRange", "(Lio/scanbot/sdk/camera/ZoomRange;)V", "")]
public void SetPhysicalZoomRange(ZoomRange zoomRange)
Parameters
zoomRangeZoomRange
SetPictureSize(Size)
[Register("setPictureSize", "(Landroid/hardware/Camera$Size;)V", "")]
public void SetPictureSize(Camera.Size pictureSize)
Parameters
SetPreviewMode(CameraPreviewMode)
[Register("setPreviewMode", "(Lio/scanbot/sdk/camera/CameraPreviewMode;)V", "")]
public void SetPreviewMode(CameraPreviewMode mode)
Parameters
modeCameraPreviewMode
SetPreviewSize(Size)
[Register("setPreviewSize", "(Landroid/hardware/Camera$Size;)V", "")]
public void SetPreviewSize(Camera.Size previewSize)
Parameters
SetShutterSound(bool)
[Register("setShutterSound", "(Z)V", "")]
public void SetShutterSound(bool enabled)
Parameters
enabledbool
SetSnappingAutoAdjustment(bool)
[Register("setSnappingAutoAdjustment", "(Z)V", "")]
public void SetSnappingAutoAdjustment(bool enabled)
Parameters
enabledbool
SetSquareFrameSizeEnabled(bool)
[Register("setSquareFrameSizeEnabled", "(Z)V", "")]
public void SetSquareFrameSizeEnabled(bool enabled)
Parameters
enabledbool
SetUiZoomLevel(float)
[Register("setUiZoomLevel", "(F)V", "")]
public void SetUiZoomLevel(float zoomLevel)
Parameters
zoomLevelfloat
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
acquireFocusbool
TakePicture(bool, bool)
[Register("takePicture", "(ZZ)V", "")]
public void TakePicture(bool acquireFocus, bool isCapturedAutomatically)
Parameters
UnlockOrientation()
[Register("unlockOrientation", "()V", "")]
public void UnlockOrientation()
UseFlash(bool)
[Register("useFlash", "(Z)V", "")]
public void UseFlash(bool useFlash)
Parameters
useFlashbool
UsePinchToZoom(bool)
[Register("usePinchToZoom", "(Z)V", "")]
public void UsePinchToZoom(bool usePinchToZoom)
Parameters
usePinchToZoombool