Package io.scanbot.sdk.ui.view.mrz
Class MRZScannerActivity
-
- All Implemented Interfaces:
-
io.scanbot.sdk.ui.di.HasComponent,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.mrz.MrzScannerActivity] instead") public final class MRZScannerActivity extends BaseMRZScannerActivity implements HasComponent<SDKUIComponent>
Represents camera screen for MRZ codes scanning.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMRZScannerActivity.Resultpublic final classMRZScannerActivity.ResultContractPredefined AndroidX Activity Result API contract, ScanbotSDK-flavored.
Implementation of ActivityResultContract for MRZ 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/
public classMRZScannerActivity.Companion
-
Field Summary
Fields Modifier and Type Field Description private final SDKUIComponentcomponentpublic final static MRZScannerActivity.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description MRZScannerActivity()
-
Method Summary
Modifier and Type Method Description SDKUIComponentgetComponent()UnitonCreate(Bundle savedInstanceState)final static IntentnewIntent(Context context, MRZScannerConfiguration scannerConfiguration)Factory method to construct intent to start this activity. final static UnitforceClose(Context context)Triggers the force-finishing of the RTU UI Activity. static MRZScannerActivity.ResultextractResult(Integer resultCode, Intent data)Extract result entity encapsulating this RTU-activity's work. -
-
Method Detail
-
getComponent
SDKUIComponent getComponent()
-
newIntent
@Deprecated(message = "Migrate to new AndroidX Result API. Please see ResultContract.") final static Intent newIntent(Context context, MRZScannerConfiguration 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 MRZScannerActivity.Result extractResult(Integer resultCode, Intent data)
Extract result entity encapsulating this RTU-activity's work.
-
-
-
-