Package io.scanbot.sdk.ui_v2.mrz
Class MrzScannerActivity
-
- All Implemented Interfaces:
-
io.scanbot.sdk.ui_v2.common.activity.Cancelable
,io.scanbot.sdk.ui_v2.common.activity.IForceCloseCallback
,io.scanbot.sdk.ui_v2.common.activity.Initializable
,io.scanbot.sdk.ui_v2.common.activity.Licensable
public final class MrzScannerActivity extends BaseMrzScannerActivity
Represents camera screen for Barcodes scanning.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
MrzScannerActivity.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.
public final class
MrzScannerActivity.Result
Wrapper-class for all information, obtained as a result of RTU activity work.
public class
MrzScannerActivity.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Function1<MrzScannerScreenConfiguration, Unit>
createView
public final static MrzScannerActivity.Companion
Companion
-
Constructor Summary
Constructors Constructor Description MrzScannerActivity()
-
Method Summary
Modifier and Type Method Description Function1<MrzScannerScreenConfiguration, Unit>
getCreateView()
Will be overridden by descendants that define their own composable views, but we need to call it in onCreate here. Unit
forceClose()
This method is called when the activity is closed by the timeout with canceling final static Intent
newIntent(Context context, MrzScannerScreenConfiguration scannerConfiguration)
Factory method to construct intent to start this activity. static MrzScannerActivity.Result
extractResult(Integer resultCode, Intent data)
Extract result entity encapsulating this RTU-activity's work. -
-
Method Detail
-
getCreateView
Function1<MrzScannerScreenConfiguration, Unit> getCreateView()
Will be overridden by descendants that define their own composable views, but we need to call it in onCreate here.
-
forceClose
Unit forceClose()
This method is called when the activity is closed by the timeout with canceling
-
newIntent
@Deprecated(message = "Migrate to new AndroidX Result API. Please see ResultContract.") final static Intent newIntent(Context context, MrzScannerScreenConfiguration scannerConfiguration)
Factory method to construct intent to start this activity.
Deprecated: please see ResultContract
-
extractResult
static MrzScannerActivity.Result extractResult(Integer resultCode, Intent data)
Extract result entity encapsulating this RTU-activity's work.
-
-
-
-