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
A
[Register("a")]
public FinderViewAttributeHandlerImpl A { get; set; }
Property Value
D
[Register("d")]
public SnapFlashView D { get; set; }
Property Value
DelayAfterFocusCompleteMs
public long DelayAfterFocusCompleteMs { get; set; }
Property Value
E
[Register("e")]
public bool E { get; set; }
Property Value
F
[Register("f")]
public ScanbotCameraView.State F { get; set; }
Property Value
FinderViewId
public int FinderViewId { get; }
Property Value
G
[Register("g")]
public ICollection G { get; set; }
Property Value
H
[Register("h")]
public ICollection H { get; set; }
Property Value
I
[Register("i")]
public ILogger I { get; set; }
Property Value
IsFlashEnabled
public bool IsFlashEnabled { get; }
Property Value
J
[Register("j")]
public long J { get; set; }
Property Value
K
[Register("k")]
public ICaptureCallback K { 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
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()
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
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()
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
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
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