UNPKG

react-native-scanbot-sdk

Version:

Scanbot Document and Barcode Scanner SDK React Native Plugin for Android and iOS

60 lines (54 loc) 1.7 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ScanCompletionOverlay = void 0; var _Common = require("../../ui_v2/common/Common"); var _utils = require("../../utils/utils"); /// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten. /// Generated from rtu-ui-v2/schemas/common/ScanCompletionOverlay.yaml /** Configuration of the overlay to be shown after the successful scan. */ class ScanCompletionOverlay extends _utils.PartiallyConstructible { /** A caption below the icon. */ message = new _Common.StyledText({ text: '?completionOverlaySuccessMessage', color: '?sbColorOnPrimary' }); /** Color of the icon. Default is "?sbColorOnPrimary" */ iconColor = '?sbColorOnPrimary'; /** Background color of the overlay. Default is "?sbColorSurfaceHigh" */ overlayBackgroundColor = '?sbColorSurfaceHigh'; /** Timeout in milliseconds after which the overlay is automatically dismissed. Default is 1000 */ timeout = 1000; /** @param source {@displayType `DeepPartial<ScanCompletionOverlay>`} */ constructor(source = {}) { super(); if (source.message !== undefined) { this.message = new _Common.StyledText(source.message); } if (source.iconColor !== undefined) { this.iconColor = source.iconColor; } if (source.overlayBackgroundColor !== undefined) { this.overlayBackgroundColor = source.overlayBackgroundColor; } if (source.timeout !== undefined) { this.timeout = source.timeout; } } } exports.ScanCompletionOverlay = ScanCompletionOverlay; //# sourceMappingURL=ScanCompletionOverlay.js.map