Class InternalBarcodeScannerActivity
-
- All Implemented Interfaces:
-
io.scanbot.sdk.ui.view.barcode.dialog.BarcodeConfirmationDialogInterface,io.scanbot.sdk.ui.view.base.Cancelable,io.scanbot.sdk.ui.view.base.Initializable,io.scanbot.sdk.ui.view.base.Licensable,io.scanbot.sdk.ui.view.base.PermissionAware
public abstract class InternalBarcodeScannerActivity extends BaseBarcodeScannerActivity implements BarcodeConfirmationDialogInterface
Shares code common only for all non-batch-barcode scanning (standalone and bundle) activities.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceInternalBarcodeScannerActivity.InternalResultWrapper-class for all information, obtained as a result of RTU activity work.
public abstract classInternalBarcodeScannerActivity.InternalResultContractPredefined AndroidX Activity Result API contract, ScanbotSDK-flavored.
Implementation of ActivityResultContract for Barcode RTU scanner activity.
Encapsulates all the hassle of input and result data mapping into- and from intent's bundle.
Please refer to Scanbot SDK documentation: https://docs.scanbot.io/document-scanner-sdk/android/features/feature-overview/
-
Field Summary
Fields Modifier and Type Field Description public final static StringSCANNED_BARCODE_IMAGE_PATH_EXTRApublic final static StringSCANNED_BARCODE_PREVIEW_FRAME_PATH_EXTRA
-
Constructor Summary
Constructors Constructor Description InternalBarcodeScannerActivity()
-
Method Summary
Modifier and Type Method Description IntegerprovideLayoutId()Will be overridden by descendants that define their own layout, but we need to call it in onCreate here. UnitonRequestPermissionsResult(Integer requestCode, Array<String> permissions, IntArray grantResults)UnitonResume()UnitonStop()UnitonBarcodeConfirmed(BarcodeScannerResult result)Called when the user wants to confirm the scan result UnitonBarcodeRejected()Called when the user rejected the scan result and wants to retry the scan final static <A extends Any> IntentnewIntentInternal(Context context, Class<A> activityClass, BarcodeScannerConfiguration scannerConfiguration)-
-
Method Detail
-
provideLayoutId
Integer provideLayoutId()
Will be overridden by descendants that define their own layout, but we need to call it in onCreate here.
-
onRequestPermissionsResult
Unit onRequestPermissionsResult(Integer requestCode, Array<String> permissions, IntArray grantResults)
-
onBarcodeConfirmed
Unit onBarcodeConfirmed(BarcodeScannerResult result)
Called when the user wants to confirm the scan result
-
onBarcodeRejected
Unit onBarcodeRejected()
Called when the user rejected the scan result and wants to retry the scan
-
newIntentInternal
final static <A extends Any> Intent newIntentInternal(Context context, Class<A> activityClass, BarcodeScannerConfiguration scannerConfiguration)
-
-
-
-