Class FinderOverlayView
[Register("io/scanbot/sdk/ui/camera/FinderOverlayView", DoNotGenerateAcw = true)]
public class FinderOverlayView : FrameLayout, Drawable.ICallback, IAccessibilityEventSource, KeyEvent.ICallback, IViewManager, IViewParent, IFinderView, IAutoSnappingController.IAutoSnappingStateListener, IJavaObject, IJavaPeerable, IDisposable
- Inheritance
-
FinderOverlayView
- Implements
- Derived
- Inherited Members
Constructors
FinderOverlayView(Context, IAttributeSet)
[Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")]
public FinderOverlayView(Context context, IAttributeSet attr)
Parameters
context
Contextattr
IAttributeSet
FinderOverlayView(nint, JniHandleOwnership)
protected FinderOverlayView(nint javaReference, JniHandleOwnership transfer)
Parameters
javaReference
ninttransfer
JniHandleOwnership
Fields
G
[Register("G")]
public const float G = 1000
Field Value
H
[Register("H")]
public const int H = 900
Field Value
I
[Register("I")]
public const int I = 1000
Field Value
J
[Register("J")]
public const long J = 3000
Field Value
Properties
AutoSnapProgressEnabled
public bool AutoSnapProgressEnabled { get; set; }
Property Value
BottomPlaceholderView
public View BottomPlaceholderView { get; set; }
Property Value
FinderInsets
public Insets FinderInsets { get; set; }
Property Value
- Insets
FinderMaxSize
public virtual int FinderMaxSize { get; set; }
Property Value
FinderPlaceholderView
public View FinderPlaceholderView { get; set; }
Property Value
FixedFinderHeightInPx
public int FixedFinderHeightInPx { get; set; }
Property Value
FixedFinderWidthInPx
public int FixedFinderWidthInPx { get; set; }
Property Value
InitialPreviewHeight
public int InitialPreviewHeight { get; set; }
Property Value
InitialPreviewMode
public CameraPreviewMode InitialPreviewMode { get; set; }
Property Value
InitialPreviewWidth
public int InitialPreviewWidth { get; set; }
Property Value
K
[Register("k")]
public int K { get; set; }
Property Value
L
[Register("l")]
public Paint L { get; set; }
Property Value
M
[Register("m")]
public CornerPathEffect M { get; set; }
Property Value
N
[Register("n")]
public int N { get; set; }
Property Value
O
[Register("o")]
public bool O { get; set; }
Property Value
OverlayBottomPadding
public int OverlayBottomPadding { get; set; }
Property Value
OverlayLeftPadding
public int OverlayLeftPadding { get; set; }
Property Value
OverlayRightPadding
public int OverlayRightPadding { get; set; }
Property Value
OverlayTopPadding
public int OverlayTopPadding { get; set; }
Property Value
P
[Register("p")]
public ValueAnimator P { get; set; }
Property Value
Q
[Register("q")]
public ValueAnimator Q { get; set; }
Property Value
R
[Register("r")]
public int R { get; set; }
Property Value
RequiredAspectRatios
public IList<AspectRatio> RequiredAspectRatios { get; set; }
Property Value
RequiredAspectRatiosInternal
public IList<AspectRatio> RequiredAspectRatiosInternal { get; set; }
Property Value
S
[Register("s")]
public float S { get; set; }
Property Value
SafeAreaInsets
public Insets SafeAreaInsets { get; set; }
Property Value
- Insets
StrokeWidth
public float StrokeWidth { get; set; }
Property Value
SumInsets
public Insets SumInsets { get; }
Property Value
- Insets
T
[Register("t")]
public Insets T { get; set; }
Property Value
- Insets
TopPlaceholderView
public View TopPlaceholderView { get; set; }
Property Value
U
[Register("u")]
public Insets U { get; set; }
Property Value
- Insets
V
[Register("v")]
public int V { get; set; }
Property Value
W
[Register("w")]
public int W { get; set; }
Property Value
X
[Register("x")]
public CameraPreviewMode X { get; set; }
Property Value
Y
[Register("y")]
public IList Y { get; set; }
Property Value
Z
[Register("z")]
public View Z { get; set; }
Property Value
Methods
A(FinderOverlayView)
[Register("a", "(Lio/scanbot/sdk/ui/camera/FinderOverlayView;)V", "")]
public static void A(FinderOverlayView this_0)
Parameters
this_0
FinderOverlayView
A(FinderOverlayView, ValueAnimator)
[Register("a", "(Lio/scanbot/sdk/ui/camera/FinderOverlayView;Landroid/animation/ValueAnimator;)V", "")]
public static void A(FinderOverlayView this_0, ValueAnimator it)
Parameters
this_0
FinderOverlayViewit
ValueAnimator
A(FinderOverlayView, long)
[Register("a", "(Lio/scanbot/sdk/ui/camera/FinderOverlayView;J)V", "")]
public static void A(FinderOverlayView this_0, long _ms)
Parameters
this_0
FinderOverlayView_ms
long
B(FinderOverlayView)
[Register("b", "(Lio/scanbot/sdk/ui/camera/FinderOverlayView;)V", "")]
public static void B(FinderOverlayView this_0)
Parameters
this_0
FinderOverlayView
B(FinderOverlayView, ValueAnimator)
[Register("b", "(Lio/scanbot/sdk/ui/camera/FinderOverlayView;Landroid/animation/ValueAnimator;)V", "")]
public static void B(FinderOverlayView this_0, ValueAnimator it)
Parameters
this_0
FinderOverlayViewit
ValueAnimator
C(FinderOverlayView)
[Register("c", "(Lio/scanbot/sdk/ui/camera/FinderOverlayView;)V", "")]
public static void C(FinderOverlayView this_0)
Parameters
this_0
FinderOverlayView
CalculateFinderViewSize()
[Register("calculateFinderViewSize", "()V", "GetCalculateFinderViewSizeHandler")]
public virtual void CalculateFinderViewSize()
CalculateInsets()
[Register("calculateInsets", "()Landroidx/core/graphics/Insets;", "GetCalculateInsetsHandler")]
public virtual Insets CalculateInsets()
Returns
- Insets
CalculatePreviewFrameSize()
[Register("calculatePreviewFrameSize", "()Lkotlin/Pair;", "")]
public Pair CalculatePreviewFrameSize()
Returns
- Pair
CalculateTargetSize(double, int, int)
[Register("calculateTargetSize", "(DII)Lkotlin/Pair;", "")]
public Pair CalculateTargetSize(double targetAspectRatio, int finderHeight, int finderWidth)
Parameters
Returns
- Pair
CalculateTotalPaddings(int, int)
[Register("calculateTotalPaddings", "(II)Lkotlin/Pair;", "")]
public Pair CalculateTotalPaddings(int previewWidthOffset, int previewHeightOffset)
Parameters
Returns
- Pair
D(FinderOverlayView)
[Register("d", "(Lio/scanbot/sdk/ui/camera/FinderOverlayView;)V", "")]
public static void D(FinderOverlayView this_0)
Parameters
this_0
FinderOverlayView
DispatchDraw(Canvas)
[Register("dispatchDraw", "(Landroid/graphics/Canvas;)V", "GetDispatchDraw_Landroid_graphics_Canvas_Handler")]
public virtual void DispatchDraw(Canvas canvas)
Parameters
canvas
Canvas
E(FinderOverlayView)
[Register("e", "(Lio/scanbot/sdk/ui/camera/FinderOverlayView;)V", "")]
public static void E(FinderOverlayView this_0)
Parameters
this_0
FinderOverlayView
F(FinderOverlayView)
[Register("f", "(Lio/scanbot/sdk/ui/camera/FinderOverlayView;)V", "")]
public static void F(FinderOverlayView this_0)
Parameters
this_0
FinderOverlayView
InitPaintAndRect()
[Register("initPaintAndRect", "()V", "")]
public void InitPaintAndRect()
OnAttachedToWindow()
[Register("onAttachedToWindow", "()V", "GetOnAttachedToWindowHandler")]
public virtual void OnAttachedToWindow()
OnAutoSnappingCanceled()
[Register("onAutoSnappingCanceled", "()V", "GetOnAutoSnappingCanceledHandler")]
public virtual void OnAutoSnappingCanceled()
OnAutoSnappingFinished()
[Register("onAutoSnappingFinished", "()V", "GetOnAutoSnappingFinishedHandler")]
public virtual void OnAutoSnappingFinished()
OnAutoSnappingIn(long)
[Register("onAutoSnappingIn", "(J)V", "GetOnAutoSnappingIn_JHandler")]
public virtual void OnAutoSnappingIn(long ms)
Parameters
ms
long
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", "GetOnLayout_ZIIIIHandler")]
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
OnMeasure(int, int)
[Register("onMeasure", "(II)V", "GetOnMeasure_IIHandler")]
public virtual void OnMeasure(int widthMeasureSpec, int heightMeasureSpec)
Parameters
OnSizeChanged(int, int, int, int)
[Register("onSizeChanged", "(IIII)V", "GetOnSizeChanged_IIIIHandler")]
public virtual void OnSizeChanged(int w, int h, int oldw, int oldh)
Parameters
Recalculate()
[Register("recalculate", "()V", "")]
public void Recalculate()
ResizeContentViews()
[Register("resizeContentViews", "()V", "GetResizeContentViewsHandler")]
public virtual void ResizeContentViews()
SetAutoSnappingProgressStrokeColor(int)
[Register("setAutoSnappingProgressStrokeColor", "(I)V", "")]
public void SetAutoSnappingProgressStrokeColor(int strokeColor)
Parameters
strokeColor
int
SetAutoSnappingProgressStrokeWidth(int)
[Register("setAutoSnappingProgressStrokeWidth", "(I)V", "")]
public void SetAutoSnappingProgressStrokeWidth(int strokeWidth)
Parameters
strokeWidth
int
SetBottomPlaceholder(View)
[Register("setBottomPlaceholder", "(Landroid/view/View;)V", "")]
public void SetBottomPlaceholder(View view)
Parameters
view
View
SetCameraParameters(int, int, CameraPreviewMode)
[Register("setCameraParameters", "(IILio/scanbot/sdk/camera/CameraPreviewMode;)V", "GetSetCameraParameters_IILio_scanbot_sdk_camera_CameraPreviewMode_Handler")]
public virtual void SetCameraParameters(int previewWidth, int previewHeight, CameraPreviewMode cameraPreviewMode)
Parameters
previewWidth
intpreviewHeight
intcameraPreviewMode
CameraPreviewMode
SetCornerRadius(int)
[Register("setCornerRadius", "(I)V", "")]
public void SetCornerRadius(int radius)
Parameters
radius
int
SetFinderInset(Integer, Integer, Integer, Integer)
[Register("setFinderInset", "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V", "")]
public void SetFinderInset(Integer left, Integer top, Integer right, Integer bottom)
Parameters
SetFinderMinPadding(int)
[Register("setFinderMinPadding", "(I)V", "")]
public void SetFinderMinPadding(int padding)
Parameters
padding
int
SetFinderPlaceholder(View)
[Register("setFinderPlaceholder", "(Landroid/view/View;)V", "")]
public void SetFinderPlaceholder(View view)
Parameters
view
View
SetFixedFinderHeight(int)
[Register("setFixedFinderHeight", "(I)V", "")]
public void SetFixedFinderHeight(int fixedFinderHeight)
Parameters
fixedFinderHeight
int
SetFixedFinderWidth(int)
[Register("setFixedFinderWidth", "(I)V", "")]
public void SetFixedFinderWidth(int fixedFinderWidth)
Parameters
fixedFinderWidth
int
SetSafeAreaInset(Integer, Integer, Integer, Integer)
[Register("setSafeAreaInset", "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V", "")]
public void SetSafeAreaInset(Integer left, Integer top, Integer right, Integer bottom)
Parameters
SetStrokeWidth(int)
[Register("setStrokeWidth", "(I)V", "")]
public void SetStrokeWidth(int strokeWidth)
Parameters
strokeWidth
int
SetTopPlaceholder(View)
[Register("setTopPlaceholder", "(Landroid/view/View;)V", "")]
public void SetTopPlaceholder(View view)
Parameters
view
View