# TextPatternScannerScreenConfiguration constructor

TextPatternScannerScreenConfiguration({

1. String version = "1.0",
2. String screen = "TextPatternScanner",
3. TextPatternScannerScreenTextLocalization? localization,
4. Palette? palette,
5. ScanbotColor? backgroundColor,
6. CameraConfiguration? cameraConfiguration,
7. CameraPermissionScreen? cameraPermission,
8. UserGuidanceConfiguration? topUserGuidance,
9. UserGuidanceConfiguration? finderViewUserGuidance,
10. TopBarConfiguration? topBar,
11. IconButton? topBarOpenIntroScreenButton,
12. TextPatternScannerIntroScreenConfiguration? introScreen,
13. ActionBarConfiguration? actionBar,
14. PermanentViewFinderConfiguration? viewFinder,
15. TextPatternScannerConfiguration? scannerConfiguration,
16. bool shouldShowWordBoxes = true,
17. ScanbotColor? wordBoxesFillColor,
18. ScanbotColor? wordBoxesLineColor,
19. bool confirmationAlertDialogEnabled = false,
20. ScanbotAlertDialog? confirmationAlertDialog,
21. ScanCompletionOverlay? successOverlay,
22. Sound? sound,
23. Vibration? vibration,
24. bool keepScreenOn = true,

})

## Implementation

    TextPatternScannerScreenConfiguration({
      this.version = "1.0",
      this.screen = "TextPatternScanner",
      TextPatternScannerScreenTextLocalization? localization,
      Palette? palette,
      ScanbotColor? backgroundColor,
      CameraConfiguration? cameraConfiguration,
      CameraPermissionScreen? cameraPermission,
      UserGuidanceConfiguration? topUserGuidance,
      UserGuidanceConfiguration? finderViewUserGuidance,
      TopBarConfiguration? topBar,
      IconButton? topBarOpenIntroScreenButton,
      TextPatternScannerIntroScreenConfiguration? introScreen,
      ActionBarConfiguration? actionBar,
      PermanentViewFinderConfiguration? viewFinder,
      TextPatternScannerConfiguration? scannerConfiguration,
      this.shouldShowWordBoxes = true,
      ScanbotColor? wordBoxesFillColor,
      ScanbotColor? wordBoxesLineColor,
      this.confirmationAlertDialogEnabled = false,
      ScanbotAlertDialog? confirmationAlertDialog,
      ScanCompletionOverlay? successOverlay,
      Sound? sound,
      Vibration? vibration,
      this.keepScreenOn = true,
    })  : localization =
              localization ?? TextPatternScannerScreenTextLocalization(),
          palette = palette ?? Palette(),
          backgroundColor = backgroundColor ?? ScanbotColor("?sbColorSurfaceLow"),
          cameraConfiguration = cameraConfiguration ??
              CameraConfiguration(
                  orientationLockMode: OrientationLockMode.PORTRAIT),
          cameraPermission = cameraPermission ??
              CameraPermissionScreen(
                  statusBarMode: StatusBarMode.DARK,
                  background: ScanbotColor("?sbColorSurface"),
                  iconBackground: ScanbotColor("?sbColorOutline"),
                  icon: IconStyle(
                      visible: true, color: ScanbotColor("?sbColorOnSurface")),
                  enableCameraButton: ButtonConfiguration(
                      visible: true,
                      text: "?cameraPermissionEnableCameraButton",
                      accessibilityDescription:
                          "?accessibilityDescriptionCameraPermissionEnableCameraButton",
                      background: BackgroundStyle(
                          strokeColor: ScanbotColor("?sbColorPrimary"),
                          fillColor: ScanbotColor("?sbColorPrimary"),
                          strokeWidth: 0.0),
                      foreground: ForegroundStyle(
                          iconVisible: false,
                          color: ScanbotColor("?sbColorOnPrimary"),
                          useShadow: false)),
                  closeButton: ButtonConfiguration(
                      visible: true,
                      text: "?cameraPermissionCloseButton",
                      accessibilityDescription:
                          "?accessibilityDescriptionCameraPermissionCloseButton",
                      background: BackgroundStyle(
                          strokeColor: ScanbotColor("#00000000"),
                          fillColor: ScanbotColor("#00000000"),
                          strokeWidth: 0.0),
                      foreground: ForegroundStyle(
                          iconVisible: false,
                          color: ScanbotColor("?sbColorPrimary"),
                          useShadow: false)),
                  enableCameraTitle: StyledText(
                      text: "?cameraPermissionEnableCameraTitle",
                      color: ScanbotColor("?sbColorOnSurface")),
                  enableCameraExplanation: StyledText(
                      text: "?cameraPermissionEnableCameraExplanation",
                      color: ScanbotColor("?sbColorOnSurfaceVariant"))),
          topUserGuidance = topUserGuidance ??
              UserGuidanceConfiguration(
                  title: StyledText(text: "?topUserGuidance")),
          finderViewUserGuidance = finderViewUserGuidance ??
              UserGuidanceConfiguration(
                  title: StyledText(text: "?finderViewUserGuidance")),
          topBar = topBar ??
              TopBarConfiguration(
                  title: StyledText(visible: true, text: "?topBarTitle"),
                  cancelButton: ButtonConfiguration(
                      text: "?topBarCancelButton",
                      accessibilityDescription:
                          "?accessibilityDescriptionCancelButton",
                      background: BackgroundStyle(
                          strokeColor: ScanbotColor("#00000000"),
                          fillColor: ScanbotColor("#00000000"),
                          strokeWidth: 0.0),
                      foreground: ForegroundStyle(
                          color: ScanbotColor("?sbColorOnPrimary")))),
          topBarOpenIntroScreenButton = topBarOpenIntroScreenButton ??
              IconButton(
                  color: ScanbotColor("?sbColorOnPrimary"),
                  accessibilityDescription:
                      "?accessibilityDescriptionOpenIntroScreenButton"),
          introScreen =
              introScreen ?? TextPatternScannerIntroScreenConfiguration(),
          actionBar = actionBar ??
              ActionBarConfiguration(
                  flipCameraButton: RoundButton(
                      visible: false,
                      accessibilityDescription:
                          "?accessibilityDescriptionFlipCameraButton",
                      backgroundColor: ScanbotColor("?sbColorSurfaceHigh"),
                      foregroundColor: ScanbotColor("?sbColorOnPrimary"),
                      activeBackgroundColor: ScanbotColor("?sbColorWarning"),
                      activeForegroundColor: ScanbotColor("#1C1B1F"))),
          viewFinder = viewFinder ??
              PermanentViewFinderConfiguration(
                  style: FinderCorneredStyle(
                      strokeColor: ScanbotColor("?sbColorSurface"),
                      strokeWidth: 2.0),
                  aspectRatio: AspectRatio(width: 3.85, height: 1.0),
                  preferredHeight: 48.0),
          scannerConfiguration =
              scannerConfiguration ?? TextPatternScannerConfiguration(),
          wordBoxesFillColor = wordBoxesFillColor ?? ScanbotColor("#33CCE54C"),
          wordBoxesLineColor = wordBoxesLineColor ?? ScanbotColor("#33CCE599"),
          confirmationAlertDialog = confirmationAlertDialog ??
              ScanbotAlertDialog(
                  title: StyledText(
                      text: "?textPatternConfirmationAlertTitle",
                      color: ScanbotColor("?sbColorOnSurface")),
                  subtitle:
                      StyledText(color: ScanbotColor("?sbColorOnSurfaceVariant")),
                  sheetColor: ScanbotColor("?sbColorSurface"),
                  modalOverlayColor: ScanbotColor("?sbColorModalOverlay"),
                  dividerColor: ScanbotColor("?sbColorOutline"),
                  okButton: ButtonConfiguration(
                      visible: true,
                      text: "?textPatternConfirmationAlertSubmitButton",
                      accessibilityDescription:
                          "?accessibilityDescriptionConfirmationSubmitButton",
                      background: BackgroundStyle(
                          strokeColor: ScanbotColor("?sbColorPrimary"),
                          fillColor: ScanbotColor("?sbColorPrimary"),
                          strokeWidth: 1.0),
                      foreground: ForegroundStyle(
                          iconVisible: true,
                          color: ScanbotColor("?sbColorOnPrimary"),
                          useShadow: false)),
                  cancelButton: ButtonConfiguration(
                      visible: true,
                      text: "?textPatternConfirmationAlertCancelButton",
                      accessibilityDescription:
                          "?accessibilityDescriptionConfirmationCancelButton",
                      background: BackgroundStyle(
                          strokeColor: ScanbotColor("#00000000"),
                          fillColor: ScanbotColor("#00000000"),
                          strokeWidth: 1.0),
                      foreground: ForegroundStyle(
                          iconVisible: false,
                          color: ScanbotColor("?sbColorPrimary"),
                          useShadow: false))),
          successOverlay = successOverlay ?? ScanCompletionOverlay(),
          sound = sound ?? Sound(),
          vibration = vibration ?? Vibration();