react-native-scanbot-sdk
Version:
Scanbot Document and Barcode Scanner SDK React Native Plugin for Android and iOS
59 lines (56 loc) • 2.01 kB
JavaScript
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten.
/// Generated from rtu-ui-v2/schemas/common/ActionBarConfiguration.yaml
import { RoundButton } from '../../ui_v2/common/Common';
import { PartiallyConstructible } from '../../utils/utils';
/**
Configuration of the buttons available in the action bar.
*/
export class ActionBarConfiguration extends PartiallyConstructible {
/**
Configuration of the 'flash' button.
*/
flashButton = new RoundButton({
visible: true,
accessibilityDescription: '?accessibilityDescriptionFlashButton',
backgroundColor: '?sbColorSurfaceHigh',
foregroundColor: '?sbColorOnPrimary',
activeBackgroundColor: '?sbColorWarning',
activeForegroundColor: '#1C1B1F'
});
/**
Configuration of the 'zoom' button.
*/
zoomButton = new RoundButton({
visible: true,
accessibilityDescription: '?accessibilityDescriptionZoomButton',
backgroundColor: '?sbColorSurfaceHigh',
foregroundColor: '?sbColorOnPrimary',
activeBackgroundColor: '?sbColorSurfaceHigh',
activeForegroundColor: '?sbColorOnPrimary'
});
/**
Configuration of the 'flip camera' button.
*/
flipCameraButton = new RoundButton({
visible: true,
accessibilityDescription: '?accessibilityDescriptionFlipCameraButton',
backgroundColor: '?sbColorSurfaceHigh',
foregroundColor: '?sbColorOnPrimary',
activeBackgroundColor: '?sbColorWarning',
activeForegroundColor: '#1C1B1F'
});
/** @param source {@displayType `DeepPartial<ActionBarConfiguration>`} */
constructor(source = {}) {
super();
if (source.flashButton !== undefined) {
this.flashButton = new RoundButton(source.flashButton);
}
if (source.zoomButton !== undefined) {
this.zoomButton = new RoundButton(source.zoomButton);
}
if (source.flipCameraButton !== undefined) {
this.flipCameraButton = new RoundButton(source.flipCameraButton);
}
}
}
//# sourceMappingURL=ActionBarConfiguration.js.map