UNPKG

capacitor-plugin-scanbot-sdk

Version:

Scanbot Document and Barcode Scanner SDK for Capacitor

134 lines (125 loc) 4.43 kB
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 { VinScannerIntroScreenConfiguration } from '../../ui_v2/vin/VINScannerIntroScreenConfiguration'; import { VinScannerScreenTextLocalization } from '../../ui_v2/vin/VINScannerScreenTextLocalization'; import type { DeepPartial } from '../../utils/utils'; import { PartiallyConstructible } from '../../utils/utils'; import { VinScannerConfiguration } from '../../vin/VinScannerTypes'; /** Configuration of the screen for detecting VIN data. */ export declare class VinScannerScreenConfiguration 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 "VINScanner" */ readonly screen: string; /** Configuration of the all strings for VIN scanner screen. */ localization: VinScannerScreenTextLocalization; /** Define the screen's base color values from which other colors are derived. */ palette: Palette; /** The background color of the VIN 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. */ finderViewUserGuidance: UserGuidanceConfiguration; /** Configuration of the top bar on the VIN 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 VIN scanner screen. */ introScreen: VinScannerIntroScreenConfiguration; /** Configuration of the action bar. */ actionBar: ActionBarConfiguration; /** Configuration of the view finder. */ viewFinder: PermanentViewFinderConfiguration; /** Configuration of the scanner. */ scannerConfiguration: VinScannerConfiguration; /** Whether word boxes should be displayed or not. Default is true */ shouldShowWordBoxes: boolean; /** The color of word boxes filling. Works best with an alpha < 0.5. Default is "#33CCE54C" */ wordBoxesFillColor: string; /** The color of word boxes border lines. Default is "#33CCE599" */ wordBoxesLineColor: string; /** If the confirmation alert dialog is enabled. Default is false */ confirmationAlertDialogEnabled: boolean; /** Configuration of the confirmation alert dialog. */ confirmationAlertDialog: ScanbotAlertDialog; /** Configuration of the result overlay. */ successOverlay: ScanCompletionOverlay; /** 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 barcode scanner is active. (Android only). Default is true */ keepScreenOn: boolean; /** @param source {@displayType `DeepPartial<VinScannerScreenConfiguration>`} */ constructor(source?: DeepPartial<VinScannerScreenConfiguration>); }