Package io.scanbot.sdk.ui.view.barcode
Class BarcodeScannerActivity
-
- 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
@Deprecated(message = "This component is deprecated and will be deleted in the future. Please use [io.scanbot.sdk.ui_v2.barcode.BarcodeScannerActivity] instead") public final class BarcodeScannerActivity extends InternalBarcodeScannerActivity
Represents camera screen for Barcodes scanning.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
BarcodeScannerActivity.Result
Wrapper-class for all information, obtained as a result of RTU activity work.
public final class
BarcodeScannerActivity.ResultContract
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/barcode-scanner/
public class
BarcodeScannerActivity.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static BarcodeScannerActivity.Companion
Companion
-
Constructor Summary
Constructors Constructor Description BarcodeScannerActivity()
-
Method Summary
Modifier and Type Method Description Unit
onCreate(Bundle savedInstanceState)
final static Intent
newIntent(Context context, BarcodeScannerConfiguration scannerConfiguration)
Factory method to construct intent to start this activity. final static Unit
forceClose(Context context)
Triggers the force-finishing of the RTU UI Activity static BarcodeScannerActivity.Result
extractResult(Integer resultCode, Intent data)
Extract result entity encapsulating this RTU-activity's work. -
-
Method Detail
-
newIntent
@Deprecated(message = "Migrate to new AndroidX Result API. Please see ResultContract.") final static Intent newIntent(Context context, BarcodeScannerConfiguration scannerConfiguration)
Factory method to construct intent to start this activity.
Deprecated: please see ResultContract
-
forceClose
final static Unit forceClose(Context context)
Triggers the force-finishing of the RTU UI Activity
- Parameters:
context
- Android app context
-
extractResult
static BarcodeScannerActivity.Result extractResult(Integer resultCode, Intent data)
Extract result entity encapsulating this RTU-activity's work.
-
-
-
-