UNPKG

capacitor-plugin-scanbot-sdk

Version:

Scanbot Document and Barcode Scanner SDK for Capacitor

144 lines (135 loc) 5.15 kB
import { CheckScannerConfiguration } from '../../check/CheckScannerTypes'; import { CheckScannerIntroScreenConfiguration } from '../../ui_v2/check/CheckScannerIntroScreenConfiguration'; import { CheckScannerScreenTextLocalization } from '../../ui_v2/check/CheckScannerScreenTextLocalization'; import { CheckScannerGuidanceConfiguration } from '../../ui_v2/check/CheckScannerUserGuidance'; import { CheckScanningProgressConfiguration } from '../../ui_v2/check/CheckScanningProgressConfiguration'; import { ActionBarConfiguration } from '../../ui_v2/common/ActionBarConfiguration'; import { CameraConfiguration } from '../../ui_v2/common/CameraConfiguration'; import { CameraPermissionScreen } from '../../ui_v2/common/CameraPermission'; import { IconButton, Palette, Sound, Vibration } from '../../ui_v2/common/Common'; import { ScanCompletionOverlay } from '../../ui_v2/common/ScanCompletionOverlay'; import { ScanbotAlertDialog } from '../../ui_v2/common/ScanbotAlertDialog'; import { TopBarConfiguration } from '../../ui_v2/common/TopBarConfiguration'; import { UserGuidanceConfiguration } from '../../ui_v2/common/UserGuidanceConfiguration'; import { PermanentViewFinderConfiguration } from '../../ui_v2/common/ViewFinderConfiguration'; import type { DeepPartial } from '../../utils/utils'; import { PartiallyConstructible } from '../../utils/utils'; /** Configuration of the screen for detecting check data. */ export declare class CheckScannerScreenConfiguration extends PartiallyConstructible { /** Version number of the configuration object. Default is "1.0" */ readonly version: string; /** The configuration object should be applied for this screen. Default is "CheckScanner" */ readonly screen: string; /** Configuration of the all strings for check scanner screen. */ localization: CheckScannerScreenTextLocalization; /** Define the screen's base color values from which other colors are derived. */ palette: Palette; /** The background color of the check scanner screen. Default is "?sbColorSurfaceLow" */ backgroundColor: string; /** Configuration of the camera behavior. */ cameraConfiguration: CameraConfiguration; /** Configuration of the dialog for requesting camera permissions. */ cameraPermission: CameraPermissionScreen; /** Configuration of the top user guidance. */ topUserGuidance: UserGuidanceConfiguration; /** Configuration of the user guidance below finder view. */ scanStatusUserGuidance: CheckScannerGuidanceConfiguration; /** Configuration of the top bar on the check scanner screen. */ topBar: TopBarConfiguration; /** Configuration of the button in the top bar that opens the introduction screen. */ topBarOpenIntroScreenButton: IconButton; /** Configuration of the introduction screen for the check scanner. */ introScreen: CheckScannerIntroScreenConfiguration; /** Configuration of the action bar. */ actionBar: ActionBarConfiguration; /** Configuration of the view finder. */ viewFinder: PermanentViewFinderConfiguration; /** Configuration for the check recognizer. */ scannerConfiguration: CheckScannerConfiguration; /** Flag to capture high resolution image. Default is false */ captureHighResolutionImage: boolean; /** Flag to show or hide the preset button. Default is true */ exampleOverlayVisible: boolean; /** Configuration of visualization of the scanning progress. */ scanningProgress: CheckScanningProgressConfiguration; /** Timeout for the no Check found state. If the no Check found state is active longer than this value, the alert will be presented. Default is 5000 */ noCheckFoundTimeout: number; /** Timeout for the accumulation state. If the accumulation state is active longer than this value, the alert will be presented. Default is 3000 */ accumulationTimeout: number; /** Configuration of the success overlay. */ successOverlay: ScanCompletionOverlay; /** Configuration of the alert dialog that will be presented when no Check is detected. */ noCheckDetectedAlertDialog: ScanbotAlertDialog; /** Configuration of the alert dialog that will be presented when scanned image is not good. */ imageNotGoodAlertDialog: ScanbotAlertDialog; /** Configuration of the scan confirmation sound. */ sound: Sound; /** Configuration of the vibration feedback. */ vibration: Vibration; /** If enabled, the screen will not turn off while the check scanner is active. (Android only). Default is true */ keepScreenOn: boolean; /** @param source {@displayType `DeepPartial<CheckScannerScreenConfiguration>`} */ constructor(source?: DeepPartial<CheckScannerScreenConfiguration>); }