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 interface
BaseBarcodeScannerActivity.AutoCancellableResult
Result 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>
factory
private BarcodeCameraView
barcodeCameraView
-
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 BarcodeCameraView
getBarcodeCameraView()
final Unit
setBarcodeCameraView(BarcodeCameraView barcodeCameraView)
Unit
onCreate(Bundle savedInstanceState)
abstract Integer
provideLayoutId()
Will be overridden by descendants that define their own layout, but we need to call it in onCreate here. Unit
onResume()
Unit
onPause()
final Unit
onCancelScanning()
User wants to cancel scanning. final Unit
onSnappingTimeout()
Timeout time has passed. final Unit
onCancelScanningLicenseInvalid()
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.
-
-
-
-