Skip to main content

BIDScannerView

public class BIDScannerView extends android.widget.FrameLayout

↳ package com.onekosmos.blockid.sdk.cameramodule


A custom view class to be provided by application. The BIDScannerView is placed on top of Activity from where the document scanner is initiated.

Constructors​

public BIDScannerView(Context context)

  • Creates an object of BIDScannerView for a given context.
Parameter
contextContext: Application's context.

public BIDScannerView(Context context, AttributeSet attrs)

  • Creates an object of BIDScannerView for a given context and attributes.
Parameter
contextContext: Application's context.
attrsAttributeSet: A set of attributes.

public BIDScannerView(Context context, AttributeSet attrs, int defStyle)

  • Creates an object of BIDScannerView for a given context, attributes and sttle..
Parameter
contextContext: Application's context on top of which BIDScannerView object will be rendered.
attrsAttributeSet: A set of attributes.
defStyleint: A style definition.

Method Summary​

TypeNameDescription
ViewgetView()Returns the view object
voidinitView(Context context)Initialize the view based on given context
booleanisPortraitMode()Checks and indicates if the device's orientation is in portrait mode
voidsetScannerWidthMargin(int mScannerWidthMargin, View mAppScannerOverlay)Sets the horizontal margin for scanner

Method Detail​


getView​

public View getView()

  • Returns the view object.

initView​

public void initView(Context context)

  • Initialize the view based on given context.

isPortraitMode​

public boolean isPortraitMode()

  • Checks and indicates if the device's orientation is in portrait mode.

setScannerWidthMargin​

public void setScannerWidthMargin(int mScannerWidthMargin, View mAppScannerOverlay)

  • Sets the horizontal margin for scanner.