CameraScreenConfiguration constructor

CameraScreenConfiguration({
  1. AcknowledgementScreenConfiguration? acknowledgement,
  2. IntroductionScreenConfiguration? introduction,
  3. ScanAssistanceOverlay? scanAssistanceOverlay,
  4. CameraPermissionScreen? cameraPermission,
  5. StyledText? topBarTitle,
  6. IconButton? topBarIntroButton,
  7. ButtonConfiguration? topBarBackButton,
  8. UserGuidanceConfiguration? topUserGuidance,
  9. DocumentScannerUserGuidance? userGuidance,
  10. ScanbotColor? backgroundColor,
  11. DocumentScannerCameraConfiguration? cameraConfiguration,
  12. DocumentPolygonConfiguration? polygon,
  13. CameraBottomBar? bottomBar,
  14. ViewFinderConfiguration? viewFinder,
  15. CaptureFeedback? captureFeedback,
  16. Vibration? vibration,
  17. Timeouts? timeouts,
  18. ScanbotAlertDialog? limitReachedAlertDialog,
  19. ScanbotAlertDialog? cancelAlertDialog,
})

Implementation

CameraScreenConfiguration({
  AcknowledgementScreenConfiguration? acknowledgement,
  IntroductionScreenConfiguration? introduction,
  ScanAssistanceOverlay? scanAssistanceOverlay,
  CameraPermissionScreen? cameraPermission,
  StyledText? topBarTitle,
  IconButton? topBarIntroButton,
  ButtonConfiguration? topBarBackButton,
  UserGuidanceConfiguration? topUserGuidance,
  DocumentScannerUserGuidance? userGuidance,
  ScanbotColor? backgroundColor,
  DocumentScannerCameraConfiguration? cameraConfiguration,
  DocumentPolygonConfiguration? polygon,
  CameraBottomBar? bottomBar,
  ViewFinderConfiguration? viewFinder,
  CaptureFeedback? captureFeedback,
  Vibration? vibration,
  Timeouts? timeouts,
  ScanbotAlertDialog? limitReachedAlertDialog,
  ScanbotAlertDialog? cancelAlertDialog,
})  : acknowledgement =
          acknowledgement ?? AcknowledgementScreenConfiguration(),
      introduction = introduction ?? IntroductionScreenConfiguration(),
      scanAssistanceOverlay =
          scanAssistanceOverlay ?? ScanAssistanceOverlay(),
      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"))),
      topBarTitle = topBarTitle ??
          StyledText(
              text: "?cameraTopBarTitle",
              color: ScanbotColor("?sbColorOnPrimary")),
      topBarIntroButton = topBarIntroButton ??
          IconButton(
              color: ScanbotColor("?sbColorOnPrimary"),
              accessibilityDescription:
                  "?accessibilityDescriptionCameraTopBarIntroButton"),
      topBarBackButton = topBarBackButton ??
          ButtonConfiguration(
              visible: true,
              text: "?cameraTopBarCancelButtonTitle",
              accessibilityDescription:
                  "?accessibilityDescriptionCameraTopBarCancelButton",
              background: BackgroundStyle(
                  strokeColor: ScanbotColor("#00000000"),
                  fillColor: ScanbotColor("#00000000"),
                  strokeWidth: 0.0),
              foreground: ForegroundStyle(
                  iconVisible: true,
                  color: ScanbotColor("?sbColorOnPrimary"),
                  useShadow: false)),
      topUserGuidance = topUserGuidance ??
          UserGuidanceConfiguration(
              title: StyledText(
                  text: "?cameraTopGuidance",
                  color: ScanbotColor("?sbColorOnPrimary"))),
      userGuidance = userGuidance ?? DocumentScannerUserGuidance(),
      backgroundColor = backgroundColor ?? ScanbotColor("#000000FF"),
      cameraConfiguration =
          cameraConfiguration ?? DocumentScannerCameraConfiguration(),
      polygon = polygon ?? DocumentPolygonConfiguration(),
      bottomBar = bottomBar ?? CameraBottomBar(),
      viewFinder = viewFinder ??
          ViewFinderConfiguration(
              visible: false,
              aspectRatio: AspectRatio(width: 21.0, height: 29.0)),
      captureFeedback = captureFeedback ?? CaptureFeedback(),
      vibration = vibration ?? Vibration(enabled: true),
      timeouts =
          timeouts ?? Timeouts(autoCancelTimeout: 0, initialScanDelay: 0),
      limitReachedAlertDialog = limitReachedAlertDialog ??
          ScanbotAlertDialog(
              title: StyledText(
                  text: "?cameraLimitReachedAlertTitle",
                  color: ScanbotColor("?sbColorOnSurface")),
              subtitle: StyledText(
                  text: "?cameraLimitReachedAlertSubtitle",
                  color: ScanbotColor("?sbColorOnSurfaceVariant")),
              okButton: ButtonConfiguration(
                  text: "?cameraLimitReachedOkButtonTitle",
                  accessibilityDescription:
                      "?accessibilityDescriptionCameraLimitReachedOkButton",
                  background: BackgroundStyle(
                      fillColor: ScanbotColor("?sbColorPrimary"),
                      strokeWidth: 0.0),
                  foreground: ForegroundStyle(
                      color: ScanbotColor("?sbColorOnPrimary"))),
              cancelButton: ButtonConfiguration(visible: false)),
      cancelAlertDialog = cancelAlertDialog ??
          ScanbotAlertDialog(
              title: StyledText(
                  text: "?cameraCancelAlertTitle",
                  color: ScanbotColor("?sbColorOnSurface")),
              subtitle: StyledText(
                  text: "?cameraCancelAlertSubtitle",
                  color: ScanbotColor("?sbColorOnSurfaceVariant")),
              okButton: ButtonConfiguration(
                  text: "?cameraCancelYesButtonTitle",
                  accessibilityDescription:
                      "?accessibilityDescriptionCameraCancelYesButton",
                  background: BackgroundStyle(
                      fillColor: ScanbotColor("?sbColorPrimary"),
                      strokeWidth: 0.0),
                  foreground: ForegroundStyle(
                      color: ScanbotColor("?sbColorOnPrimary"))),
              cancelButton: ButtonConfiguration(
                  text: "?cameraCancelNoButtonTitle",
                  accessibilityDescription:
                      "?accessibilityDescriptionCameraCancelNoButton",
                  background: BackgroundStyle(
                      fillColor: ScanbotColor("#00000000"), strokeWidth: 0.0),
                  foreground: ForegroundStyle(
                      color: ScanbotColor("?sbColorPrimary"))));