react-native-scanbot-sdk
Version:
Scanbot Document and Barcode Scanner SDK React Native Plugin for Android and iOS
48 lines (44 loc) • 2.05 kB
text/typescript
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
/// Generated from rtu-ui-v2/schemas/document/DocumentScannerScreens.yaml
import { CameraScreenConfiguration } from '../../ui_v2/document/CameraScreenConfiguration';
import { CroppingScreenConfiguration } from '../../ui_v2/document/CroppingScreenConfiguration';
import { ReorderPagesScreenConfiguration } from '../../ui_v2/document/ReorderPagesScreenConfiguration';
import { ReviewScreenConfiguration } from '../../ui_v2/document/ReviewScreenConfiguration';
import { DeepPartial, PartiallyConstructible } from '../../utils/utils';
/**
Configuration of the document scanner sub-screens.
*/
export class DocumentScannerScreens extends PartiallyConstructible {
/**
Configuration of the screen for scanning the pages with the camera.
*/
public camera: CameraScreenConfiguration = new CameraScreenConfiguration({});
/**
Configuration of the screen for reviewing the scanned pages.
*/
public review: ReviewScreenConfiguration = new ReviewScreenConfiguration({});
/**
Configuration of the screen for cropping the scanned pages.
*/
public cropping: CroppingScreenConfiguration = new CroppingScreenConfiguration({});
/**
Configuration of the screen for reordering the scanned pages.
*/
public reorderPages: ReorderPagesScreenConfiguration = new ReorderPagesScreenConfiguration({});
/** @param source {@displayType `DeepPartial<DocumentScannerScreens>`} */
public constructor(source: DeepPartial<DocumentScannerScreens> = {}) {
super();
if (source.camera !== undefined) {
this.camera = new CameraScreenConfiguration(source.camera);
}
if (source.review !== undefined) {
this.review = new ReviewScreenConfiguration(source.review);
}
if (source.cropping !== undefined) {
this.cropping = new CroppingScreenConfiguration(source.cropping);
}
if (source.reorderPages !== undefined) {
this.reorderPages = new ReorderPagesScreenConfiguration(source.reorderPages);
}
}
}