UNPKG

scanbot-web-sdk

Version:

Scanbot Web Document and Barcode Scanner SDK

50 lines (49 loc) 2 kB
import type { DeepPartial } from "../utils"; import { RoundButton } from "./Common"; /** Configuration of the buttons available in the action bar. */ export declare class ActionBarConfiguration { /** Configuration of the 'flash' button. @defaultValue new RoundButton({ "visible": true, "accessibilityDescription": "?accessibilityDescriptionFlashButton", "accessibilityState": "?accessibilityStateFlashOffButton", "activeAccessibilityState": "?accessibilityStateFlashOnButton", "backgroundColor": "?sbColorSurfaceHigh", "foregroundColor": "?sbColorOnPrimary", "activeBackgroundColor": "?sbColorWarning", "activeForegroundColor": "#1C1B1F" }); */ flashButton: RoundButton; /** Configuration of the 'zoom' button. @defaultValue new RoundButton({ "visible": true, "accessibilityDescription": "?accessibilityDescriptionZoomButton", "backgroundColor": "?sbColorSurfaceHigh", "foregroundColor": "?sbColorOnPrimary", "activeBackgroundColor": "?sbColorSurfaceHigh", "activeForegroundColor": "?sbColorOnPrimary" }); */ zoomButton: RoundButton; /** Configuration of the 'flip camera' button. @defaultValue new RoundButton({ "visible": true, "accessibilityDescription": "?accessibilityDescriptionFlipCameraButton", "accessibilityState": "?accessibilityStateFlipCameraBackButton", "activeAccessibilityState": "?accessibilityStateFlipCameraFrontButton", "backgroundColor": "?sbColorSurfaceHigh", "foregroundColor": "?sbColorOnPrimary", "activeBackgroundColor": "?sbColorWarning", "activeForegroundColor": "#1C1B1F" }); */ flipCameraButton: RoundButton; /** @param source {@displayType `DeepPartial<ActionBarConfiguration>`} */ constructor(source?: DeepPartial<ActionBarConfiguration>); }