react-native-scanbot-sdk
Version:
Scanbot Document and Barcode Scanner SDK React Native Plugin for Android and iOS
49 lines (43 loc) • 1.5 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CreditCardScanningProgressConfiguration = void 0;
var _utils = require("../../utils/utils");
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
/// Generated from rtu-ui-v2/schemas/creditcard/CreditCardScanningProgressConfiguration.yaml
/**
Configuration of visualization of the scanning progress - indeterminate progress.
*/
class CreditCardScanningProgressConfiguration extends _utils.PartiallyConstructible {
/**
Enable or disable the scanning progress visualization.
Default is true
*/
enabled = true;
/**
The color of the scanning progress.
Default is "#40A9FF"
*/
progressColor = '#40A9FF';
/**
The duration of a single scanning progress cycle animation in milliseconds.
Default is 1000
*/
animationDuration = 1000;
/** @param source {@displayType `DeepPartial<CreditCardScanningProgressConfiguration>`} */
constructor(source = {}) {
super();
if (source.enabled !== undefined) {
this.enabled = source.enabled;
}
if (source.progressColor !== undefined) {
this.progressColor = source.progressColor;
}
if (source.animationDuration !== undefined) {
this.animationDuration = source.animationDuration;
}
}
}
exports.CreditCardScanningProgressConfiguration = CreditCardScanningProgressConfiguration;
//# sourceMappingURL=CreditCardScanningProgressConfiguration.js.map