DocumentDataExtractorScreenTextLocalization constructor
DocumentDataExtractorScreenTextLocalization({
- String topBarTitle = "Document Data Extractor",
- String topBarCancelButton = "Cancel",
- String topUserGuidance = "Point the camera at the ID document",
- String introScreenTitle = "How to scan an ID document",
- String introScreenDoneButton = "Start Scanning",
- String introScreenText = "To scan an ID, position the document within the frame, ensuring it's properly aligned and all key details are clearly visible. The scanner will then automatically extract essential information like name, date of birth, and document number. Once scanned, the data will be processed.\n\nPress 'Start Scanning' to begin.",
- String completionOverlaySuccessMessage = "Scanned successfully",
- String accessibilityDescriptionOpenIntroScreenButton = "Open ID document scanning introduction",
- String accessibilityDescriptionIntroScreenDoneButton = "Start ID scanning",
- String accessibilityDescriptionCancelButton = "Cancel ID scanning",
- String accessibilityDescriptionRetryButton = "Retry ID scanning",
- String accessibilityDescriptionCloseScannerButton = "Close the scanner",
- String documentDataExtractorAlertRetryButton = "Retry",
- String documentDataExtractorAlertCloseScannerButton = "Close Scanner",
- String documentDataExtractorNoDocumentDetectedAlertTitle = "No document detected",
- String documentDataExtractorNoDocumentDetectedAlertSubtitle = "The scanner couldn't detect the document. Please ensure it's well-lit and fully visible, then try again.",
- String documentDataExtractorCantProcessDocumentAlertTitle = "Document could not be processed",
- String documentDataExtractorCantProcessDocumentAlertSubtitle = "This document doesn't meet the processing requirements. Please check accepted document types and try again.",
- String documentDataExtractorUnsupportedDocumentAlertTitle = "Unsupported document",
- String documentDataExtractorUnsupportedDocumentAlertSubtitle = "This document type isn't supported. Please try again with a valid document format.",
- String documentDataExtractorScanningTooLongAlertTitle = "Scanning took too long",
- String documentDataExtractorScanningTooLongAlertSubtitle = "Scanning took longer than expected. Please ensure the document is well-lit and fully visible, then try again.",
- String accessibilityDescriptionFlashButton = "Toggle flash",
- String accessibilityDescriptionZoomButton = "Toggle camera zoom",
- String accessibilityDescriptionFlipCameraButton = "Flip camera",
- String cameraPermissionEnableCameraTitle = "Camera permission denied!",
- String cameraPermissionEnableCameraExplanation = "Please allow the usage of the camera to start the scanning process.",
- String cameraPermissionEnableCameraButton = "Grant permission",
- String cameraPermissionCloseButton = "Close",
- String accessibilityDescriptionCameraPermissionEnableCameraButton = "Tap to grant camera permission",
- String accessibilityDescriptionCameraPermissionCloseButton = "Close screen without granting permission",
- String documentUserGuidanceNoDocumentFound = "Looking for document...",
- String documentUserGuidanceScanningProgress = "Scanning the document...",
- String documentUserGuidanceTooDark = "Too dark. Please turn on a light.",
- String documentUserGuidanceTooSmall = "Please move closer to the document.",
- String documentUserGuidanceBadPerspective = "Please hold your device straight over the document.",
Implementation
DocumentDataExtractorScreenTextLocalization({
this.topBarTitle = "Document Data Extractor",
this.topBarCancelButton = "Cancel",
this.topUserGuidance = "Point the camera at the ID document",
this.introScreenTitle = "How to scan an ID document",
this.introScreenDoneButton = "Start Scanning",
this.introScreenText =
"To scan an ID, position the document within the frame, ensuring it's properly aligned and all key details are clearly visible. The scanner will then automatically extract essential information like name, date of birth, and document number. Once scanned, the data will be processed.\n\nPress 'Start Scanning' to begin.",
this.completionOverlaySuccessMessage = "Scanned successfully",
this.accessibilityDescriptionOpenIntroScreenButton =
"Open ID document scanning introduction",
this.accessibilityDescriptionIntroScreenDoneButton = "Start ID scanning",
this.accessibilityDescriptionCancelButton = "Cancel ID scanning",
this.accessibilityDescriptionRetryButton = "Retry ID scanning",
this.accessibilityDescriptionCloseScannerButton = "Close the scanner",
this.documentDataExtractorAlertRetryButton = "Retry",
this.documentDataExtractorAlertCloseScannerButton = "Close Scanner",
this.documentDataExtractorNoDocumentDetectedAlertTitle =
"No document detected",
this.documentDataExtractorNoDocumentDetectedAlertSubtitle =
"The scanner couldn't detect the document. Please ensure it's well-lit and fully visible, then try again.",
this.documentDataExtractorCantProcessDocumentAlertTitle =
"Document could not be processed",
this.documentDataExtractorCantProcessDocumentAlertSubtitle =
"This document doesn't meet the processing requirements. Please check accepted document types and try again.",
this.documentDataExtractorUnsupportedDocumentAlertTitle =
"Unsupported document",
this.documentDataExtractorUnsupportedDocumentAlertSubtitle =
"This document type isn't supported. Please try again with a valid document format.",
this.documentDataExtractorScanningTooLongAlertTitle =
"Scanning took too long",
this.documentDataExtractorScanningTooLongAlertSubtitle =
"Scanning took longer than expected. Please ensure the document is well-lit and fully visible, then try again.",
this.accessibilityDescriptionFlashButton = "Toggle flash",
this.accessibilityDescriptionZoomButton = "Toggle camera zoom",
this.accessibilityDescriptionFlipCameraButton = "Flip camera",
this.cameraPermissionEnableCameraTitle = "Camera permission denied!",
this.cameraPermissionEnableCameraExplanation =
"Please allow the usage of the camera to start the scanning process.",
this.cameraPermissionEnableCameraButton = "Grant permission",
this.cameraPermissionCloseButton = "Close",
this.accessibilityDescriptionCameraPermissionEnableCameraButton =
"Tap to grant camera permission",
this.accessibilityDescriptionCameraPermissionCloseButton =
"Close screen without granting permission",
this.documentUserGuidanceNoDocumentFound = "Looking for document...",
this.documentUserGuidanceScanningProgress = "Scanning the document...",
this.documentUserGuidanceTooDark = "Too dark. Please turn on a light.",
this.documentUserGuidanceTooSmall = "Please move closer to the document.",
this.documentUserGuidanceBadPerspective =
"Please hold your device straight over the document.",
});