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 interface
InternalBarcodeScannerActivity.InternalResult
Wrapper-class for all information, obtained as a result of RTU activity work.
public abstract class
InternalBarcodeScannerActivity.InternalResultContract
Predefined 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 String
SCANNED_BARCODE_IMAGE_PATH_EXTRA
public final static String
SCANNED_BARCODE_PREVIEW_FRAME_PATH_EXTRA
-
Constructor Summary
Constructors Constructor Description InternalBarcodeScannerActivity()
-
Method Summary
Modifier and Type Method Description Integer
provideLayoutId()
Will be overridden by descendants that define their own layout, but we need to call it in onCreate here. Unit
onRequestPermissionsResult(Integer requestCode, Array<String> permissions, IntArray grantResults)
Unit
onResume()
Unit
onBarcodeConfirmed(BarcodeScanningResult result)
Called when the user wants to confirm the scan result Unit
onBarcodeRejected()
Called when the user rejected the scan result and wants to retry the scan final static <A extends Any> Intent
newIntentInternal(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(BarcodeScanningResult 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)
-
-
-
-