Package io.scanbot.sdk.ui.view.edit
Class CroppingActivity
-
- 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 CroppingActivity extends BaseCroppingActivity implements HasComponent<SDKUIComponent>
Activity representing cropping UI - allows user to adjust polygon and rotate the image.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
CroppingActivity.Result
public final class
CroppingActivity.ResultContract
Predefined AndroidX Activity Result API contract, ScanbotSDK-flavored.
Implementation of ActivityResultContract for Cropping RTU 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 class
CroppingActivity.Companion
-
Field Summary
Fields Modifier and Type Field Description private final SDKUIComponent
component
public final static CroppingActivity.Companion
Companion
-
Constructor Summary
Constructors Constructor Description CroppingActivity()
-
Method Summary
Modifier and Type Method Description SDKUIComponent
getComponent()
Unit
onCreate(Bundle savedInstanceState)
final static Intent
newIntent(Context context, CroppingConfiguration croppingConfiguration)
Factory method to construct intent to start this activity. static CroppingActivity.Result
extractResult(Integer resultCode, Intent data)
Extract result entity encapsulating this RTU-activity's work. final static Unit
forceClose(Context context)
Triggers the force-finishing of the RTU UI Activity -
-
Method Detail
-
getComponent
SDKUIComponent getComponent()
-
newIntent
@Deprecated(message = "Migrate to new AndroidX Result API. Please see ResultContract.") final static Intent newIntent(Context context, CroppingConfiguration croppingConfiguration)
Factory method to construct intent to start this activity.
Deprecated: please see ResultContract
-
extractResult
static CroppingActivity.Result extractResult(Integer resultCode, Intent data)
Extract result entity encapsulating this RTU-activity's work.
-
forceClose
final static Unit forceClose(Context context)
Triggers the force-finishing of the RTU UI Activity
- Parameters:
context
- Android app context
-
-
-
-