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
context
Context
ScanbotCameraView(Context, IAttributeSet)
[Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")]
public ScanbotCameraView(Context context, IAttributeSet attrs)
Parameters
context
Contextattrs
IAttributeSet
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
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()
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
clazz
Class
Returns
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
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
changed
boolThis is a new size or position for this view
left
intLeft position, relative to parent
top
intTop position, relative to parent
right
intRight position, relative to parent
bottom
intBottom 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
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()
SetAutoFocusOnTouch(bool)
[Register("setAutoFocusOnTouch", "(Z)V", "")]
public void SetAutoFocusOnTouch(bool autoFocusOnTouch)
Parameters
autoFocusOnTouch
bool
SetAutoFocusSound(bool)
[Register("setAutoFocusSound", "(Z)V", "")]
public void SetAutoFocusSound(bool enabled)
Parameters
enabled
bool
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 zoomLevel)
Parameters
zoomLevel
float
SetPhysicalZoomRange(ZoomRange)
[Register("setPhysicalZoomRange", "(Lio/scanbot/sdk/camera/ZoomRange;)V", "")]
public void SetPhysicalZoomRange(ZoomRange zoomRange)
Parameters
zoomRange
ZoomRange
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
mode
CameraPreviewMode
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
enabled
bool
SetSnappingAutoAdjustment(bool)
[Register("setSnappingAutoAdjustment", "(Z)V", "")]
public void SetSnappingAutoAdjustment(bool enabled)
Parameters
enabled
bool
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
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