Package io.scanbot.sdk.ui.view.camera
Class DocumentScannerActivity
-
- 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.document.DocumentScannerActivity] instead") public final class DocumentScannerActivity extends BaseDocumentScannerActivity implements HasComponent<SDKUIComponent>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classDocumentScannerActivity.Resultpublic final classDocumentScannerActivity.DocumentScannerSettingspublic final classDocumentScannerActivity.ResultContractPredefined AndroidX Activity Result API contract, ScanbotSDK-flavored.
Implementation of ActivityResultContract for Document 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 classDocumentScannerActivity.Companion
-
Field Summary
Fields Modifier and Type Field Description private final SDKUIComponentcomponentpublic final static DocumentScannerActivity.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description DocumentScannerActivity()
-
Method Summary
Modifier and Type Method Description SDKUIComponentgetComponent()UnitonCreate(Bundle savedInstanceState)UnitcloseSnapping(DocumentScannerNavigationEvent.CloseSnapping closeSnapping)User want to close snapping. final static IntentnewIntent(Context context, DocumentScannerConfiguration documentScannerConfiguration)Factory method to construct intent to start this activity. static DocumentScannerActivity.ResultextractResult(Integer resultCode, Intent data)Extract result entity encapsulating this RTU-activity's work. final static UnitforceClose(Context context, Boolean keepResult)Triggers the force-finishing of the RTU UI Activity -
-
Method Detail
-
getComponent
SDKUIComponent getComponent()
-
closeSnapping
Unit closeSnapping(DocumentScannerNavigationEvent.CloseSnapping closeSnapping)
User want to close snapping.
-
newIntent
@Deprecated(message = "Migrate to new AndroidX Result API. Please see ResultContract.") final static Intent newIntent(Context context, DocumentScannerConfiguration documentScannerConfiguration)
Factory method to construct intent to start this activity.
Deprecated: please see ResultContract
-
extractResult
static DocumentScannerActivity.Result extractResult(Integer resultCode, Intent data)
Extract result entity encapsulating this RTU-activity's work.
-
forceClose
final static Unit forceClose(Context context, Boolean keepResult)
Triggers the force-finishing of the RTU UI Activity
- Parameters:
context- Android app contextkeepResult- whether it is needed to keep current state
-
-
-
-