Class TextDataScannerActivity
-
- 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
public final class TextDataScannerActivity extends BaseTextDataScannerActivity implements HasComponent<SDKUIComponent>
Shows generic data scanner screen of the application.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
TextDataScannerActivity.Result
public final class
TextDataScannerActivity.ResultContract
Predefined AndroidX Activity Result API contract, ScanbotSDK-flavored.
Implementation of ActivityResultContract for Text data RTU scanner activity.
Encapsulates all the hassle of input and result data mapping into- and from intent's bundle.
public class
TextDataScannerActivity.Companion
-
Field Summary
Fields Modifier and Type Field Description private final SDKUIComponent
component
public final static TextDataScannerActivity.Companion
Companion
-
Constructor Summary
Constructors Constructor Description TextDataScannerActivity()
-
Method Summary
Modifier and Type Method Description SDKUIComponent
getComponent()
Unit
onCreate(Bundle savedInstanceState)
final static Intent
newIntent(Context context, TextDataScannerConfiguration 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 TextDataScannerActivity.Result
extractResult(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, TextDataScannerConfiguration 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 TextDataScannerActivity.Result extractResult(Integer resultCode, Intent data)
Extract result entity encapsulating this RTU-activity's work.
-
-
-
-