react-native-scanbot-sdk
Version:
Scanbot Document and Barcode Scanner SDK React Native Plugin for Android and iOS
132 lines (116 loc) • 5.19 kB
text/typescript
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
/// Generated from rtu-ui-v2/schemas/document/CroppingTextLocalization.yaml
import { DeepPartial, PartiallyConstructible } from '../../utils/utils';
/**
Configuration of all the strings for the standalone cropping screen.
*/
export class CroppingTextLocalization extends PartiallyConstructible {
/**
The cropping progress overlay title.
Default is "Please wait..."
*/
public cameraProgressOverlayTitle: string = 'Please wait...';
/**
The 'cancel' button title, located in the top bar of the cropping screen.
Default is "Cancel"
*/
public croppingTopBarCancelButtonTitle: string = 'Cancel';
/**
The 'confirm' button title, located in the top bar of the cropping screen.
Default is "Done"
*/
public croppingTopBarConfirmButtonTitle: string = 'Done';
/**
The 'detect document' button title, located in the bottom bar of the cropping screen.
Default is "Detect"
*/
public croppingDetectButtonTitle: string = 'Detect';
/**
The 'rotate page' button title, located in the bottom bar of the cropping screen.
Default is "Rotate"
*/
public croppingRotateButtonTitle: string = 'Rotate';
/**
The 'reset detection' button title, located in the bottom bar of the cropping screen.
Default is "Reset"
*/
public croppingResetButtonTitle: string = 'Reset';
/**
The cropping screen title, located in the top bar.
Default is "Crop"
*/
public croppingScreenTitle: string = 'Crop';
/**
The accessibility hint for the 'confirm' button, located in the top bar of the cropping screen.
Default is "Tap to apply changes"
*/
public accessibilityDescriptionCroppingTopBarConfirmButton: string = 'Tap to apply changes';
/**
The accessibility hint for the 'cancel' button, located in the top bar of the cropping screen.
Default is "Tap to close screen without applying changes"
*/
public accessibilityDescriptionCroppingTopBarCancelButton: string =
'Tap to close screen without applying changes';
/**
The accessibility hint for the 'detect document' button, located in the bottom bar of the cropping screen.
Default is "Tap to detect document on the image"
*/
public accessibilityDescriptionCroppingDetectButton: string =
'Tap to detect document on the image';
/**
The accessibility hint for the 'rotate page' button, located in the bottom bar of the cropping screen.
Default is "Tap to rotate document"
*/
public accessibilityDescriptionCroppingRotateButton: string = 'Tap to rotate document';
/**
The accessibility hint for the 'reset detection' button, located in the bottom bar of the cropping screen.
Default is "Tap to reset document contour to whole image"
*/
public accessibilityDescriptionCroppingResetButton: string =
'Tap to reset document contour to whole image';
/** @param source {@displayType `DeepPartial<CroppingTextLocalization>`} */
public constructor(source: DeepPartial<CroppingTextLocalization> = {}) {
super();
if (source.cameraProgressOverlayTitle !== undefined) {
this.cameraProgressOverlayTitle = source.cameraProgressOverlayTitle;
}
if (source.croppingTopBarCancelButtonTitle !== undefined) {
this.croppingTopBarCancelButtonTitle = source.croppingTopBarCancelButtonTitle;
}
if (source.croppingTopBarConfirmButtonTitle !== undefined) {
this.croppingTopBarConfirmButtonTitle = source.croppingTopBarConfirmButtonTitle;
}
if (source.croppingDetectButtonTitle !== undefined) {
this.croppingDetectButtonTitle = source.croppingDetectButtonTitle;
}
if (source.croppingRotateButtonTitle !== undefined) {
this.croppingRotateButtonTitle = source.croppingRotateButtonTitle;
}
if (source.croppingResetButtonTitle !== undefined) {
this.croppingResetButtonTitle = source.croppingResetButtonTitle;
}
if (source.croppingScreenTitle !== undefined) {
this.croppingScreenTitle = source.croppingScreenTitle;
}
if (source.accessibilityDescriptionCroppingTopBarConfirmButton !== undefined) {
this.accessibilityDescriptionCroppingTopBarConfirmButton =
source.accessibilityDescriptionCroppingTopBarConfirmButton;
}
if (source.accessibilityDescriptionCroppingTopBarCancelButton !== undefined) {
this.accessibilityDescriptionCroppingTopBarCancelButton =
source.accessibilityDescriptionCroppingTopBarCancelButton;
}
if (source.accessibilityDescriptionCroppingDetectButton !== undefined) {
this.accessibilityDescriptionCroppingDetectButton =
source.accessibilityDescriptionCroppingDetectButton;
}
if (source.accessibilityDescriptionCroppingRotateButton !== undefined) {
this.accessibilityDescriptionCroppingRotateButton =
source.accessibilityDescriptionCroppingRotateButton;
}
if (source.accessibilityDescriptionCroppingResetButton !== undefined) {
this.accessibilityDescriptionCroppingResetButton =
source.accessibilityDescriptionCroppingResetButton;
}
}
}