Package io.scanbot.sdk.ui.view.barcode
Class BaseBarcodeScannerActivity
-
- All Implemented Interfaces:
-
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 abstract class BaseBarcodeScannerActivity extends NFBaseActivity
Base class is to hold only code common for all Barcode- and BatchBarcode- activities.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceBaseBarcodeScannerActivity.AutoCancellableResultResult wrapping entity for component, that support automatic scanning cancelling and closing due to timer.
-
Field Summary
Fields Modifier and Type Field Description private <Error class: unknown class>factoryprivate BarcodeCameraViewbarcodeCameraView
-
Constructor Summary
Constructors Constructor Description BaseBarcodeScannerActivity()
-
Method Summary
Modifier and Type Method Description final <Error class: unknown class>getFactory()final Unit)>setFactory(<Error class: unknown class> factory)final BarcodeCameraViewgetBarcodeCameraView()final UnitsetBarcodeCameraView(BarcodeCameraView barcodeCameraView)UnitonCreate(Bundle savedInstanceState)abstract IntegerprovideLayoutId()Will be overridden by descendants that define their own layout, but we need to call it in onCreate here. UnitonResume()UnitonPause()final UnitonCancelScanning()User wants to cancel scanning. final UnitonSnappingTimeout()Timeout time has passed. final UnitonCancelScanningLicenseInvalid()Cancel barcode scanning because of the invalid license. -
-
Method Detail
-
getFactory
final <Error class: unknown class> getFactory()
-
setFactory
final Unit )>setFactory(<Error class: unknown class> factory)
-
getBarcodeCameraView
final BarcodeCameraView getBarcodeCameraView()
-
setBarcodeCameraView
final Unit setBarcodeCameraView(BarcodeCameraView barcodeCameraView)
-
provideLayoutId
abstract Integer provideLayoutId()
Will be overridden by descendants that define their own layout, but we need to call it in onCreate here.
-
onCancelScanning
final Unit onCancelScanning()
User wants to cancel scanning.
-
onSnappingTimeout
final Unit onSnappingTimeout()
Timeout time has passed.
-
onCancelScanningLicenseInvalid
final Unit onCancelScanningLicenseInvalid()
Cancel barcode scanning because of the invalid license.
-
-
-
-