react-native-scanbot-sdk
Version:
Scanbot Document and Barcode Scanner SDK React Native Plugin for Android and iOS
43 lines (36 loc) • 1.34 kB
text/typescript
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
/// Generated from rtu-ui-v2/schemas/creditcard/CreditCardScanningProgressConfiguration.yaml
import { DeepPartial, PartiallyConstructible } from '../../utils/utils';
/**
Configuration of visualization of the scanning progress - indeterminate progress.
*/
export class CreditCardScanningProgressConfiguration extends PartiallyConstructible {
/**
Enable or disable the scanning progress visualization.
Default is true
*/
public enabled: boolean = true;
/**
The color of the scanning progress.
Default is "#40A9FF"
*/
public progressColor: string = '#40A9FF';
/**
The duration of a single scanning progress cycle animation in milliseconds.
Default is 1000
*/
public animationDuration: number = 1000;
/** @param source {@displayType `DeepPartial<CreditCardScanningProgressConfiguration>`} */
public constructor(source: DeepPartial<CreditCardScanningProgressConfiguration> = {}) {
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;
}
}
}