UNPKG

react-native-scanbot-barcode-scanner-sdk

Version:

Scanbot Barcode Scanner SDK React Native Plugin for Android and iOS

59 lines (57 loc) 1.85 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ActionBarConfiguration = void 0; var _utils = require("../../utils"); var _Common = require("../common/Common"); /** Configuration of the buttons available in the action bar. */ class ActionBarConfiguration extends _utils.PartiallyConstructible { /** Configuration of the 'flash' button. */ flashButton = new _Common.RoundButton({ visible: true, backgroundColor: '?sbColorSurfaceHigh', foregroundColor: '?sbColorOnPrimary', activeBackgroundColor: '?sbColorWarning', activeForegroundColor: '#1C1B1F' }); /** Configuration of the 'zoom' button. */ zoomButton = new _Common.RoundButton({ visible: true, backgroundColor: '?sbColorSurfaceHigh', foregroundColor: '?sbColorOnPrimary', activeBackgroundColor: '?sbColorSurfaceHigh', activeForegroundColor: '?sbColorOnPrimary' }); /** Configuration of the 'flip camera' button. */ flipCameraButton = new _Common.RoundButton({ visible: true, backgroundColor: '?sbColorSurfaceHigh', foregroundColor: '?sbColorOnPrimary', activeBackgroundColor: '?sbColorSurfaceHigh', activeForegroundColor: '?sbColorOnPrimary' }); /** @param source {@displayType `DeepPartial<ActionBarConfiguration>`} */ constructor(source = {}) { super(); if (source.flashButton !== undefined) { this.flashButton = new _Common.RoundButton(source.flashButton); } if (source.zoomButton !== undefined) { this.zoomButton = new _Common.RoundButton(source.zoomButton); } if (source.flipCameraButton !== undefined) { this.flipCameraButton = new _Common.RoundButton(source.flipCameraButton); } } } exports.ActionBarConfiguration = ActionBarConfiguration; //# sourceMappingURL=ActionBarConfiguration.js.map