scanbot-web-sdk
Version:
Scanbot Web Document and Barcode Scanner SDK
129 lines (128 loc) • 4.83 kB
TypeScript
import type { DeepPartial } from "../utils";
import { ButtonConfiguration } from "../common/Common";
import { StyledText } from "../common/Common";
/**
The image for the introduction screen of a generic text scanner screen.
*/
export type TextPatternScannerIntroImage = TextPatternIntroGeneralField | TextPatternIntroAlphabeticField | TextPatternIntroMeterDevice | TextPatternIntroShippingContainer | TextPatternIntroNoImage | TextPatternIntroCustomImage;
/** @internal */
export declare namespace TextPatternScannerIntroImage {
/** @internal */
function from(source: DeepPartial<TextPatternScannerIntroImage>): TextPatternScannerIntroImage;
}
/**
The image for the introduction screen featuring a general text field.
*/
export declare class TextPatternIntroGeneralField {
readonly _type: "TextPatternIntroGeneralField";
/** @param source {@displayType `DeepPartial<TextPatternIntroGeneralField>`} */
constructor(source?: DeepPartial<TextPatternIntroGeneralField>);
}
/**
The image for the introduction screen featuring an alphabetic text field.
*/
export declare class TextPatternIntroAlphabeticField {
readonly _type: "TextPatternIntroAlphabeticField";
/** @param source {@displayType `DeepPartial<TextPatternIntroAlphabeticField>`} */
constructor(source?: DeepPartial<TextPatternIntroAlphabeticField>);
}
/**
The image for the introduction screen featuring an electricity meter.
*/
export declare class TextPatternIntroMeterDevice {
readonly _type: "TextPatternIntroMeterDevice";
/** @param source {@displayType `DeepPartial<TextPatternIntroMeterDevice>`} */
constructor(source?: DeepPartial<TextPatternIntroMeterDevice>);
}
/**
The image for the introduction screen showing a text on a shipping container.
*/
export declare class TextPatternIntroShippingContainer {
readonly _type: "TextPatternIntroShippingContainer";
/** @param source {@displayType `DeepPartial<TextPatternIntroShippingContainer>`} */
constructor(source?: DeepPartial<TextPatternIntroShippingContainer>);
}
/**
No image for the introduction screen.
*/
export declare class TextPatternIntroNoImage {
readonly _type: "TextPatternIntroNoImage";
/** @param source {@displayType `DeepPartial<TextPatternIntroNoImage>`} */
constructor(source?: DeepPartial<TextPatternIntroNoImage>);
}
/**
A custom image for the introduction screen.
*/
export declare class TextPatternIntroCustomImage {
readonly _type: "TextPatternIntroCustomImage";
/**
The web or file URI to the image.
*/
uri: string;
/** @param source {@displayType `DeepPartial<TextPatternIntroCustomImage>`} */
constructor(source?: DeepPartial<TextPatternIntroCustomImage>);
}
/**
Configuration of the introduction screen for the generic text scanner.
*/
export declare class TextPatternScannerIntroScreenConfiguration {
/**
The image for the introduction screen.
@defaultValue new TextPatternIntroGeneralField({});
*/
image: TextPatternScannerIntroImage;
/**
The background color of the introduction screen.
@defaultValue "?sbColorSurface";
*/
backgroundColor: string;
/**
The divider color of the introduction screen.
@defaultValue "?sbColorOutline";
*/
dividerColor: string;
/**
The handle color of the introduction screen.
@defaultValue "?sbColorOutline";
*/
handlerColor: string;
/**
Determines whether the introduction screen should automatically be shown or not when the scanning session starts.
@defaultValue false;
*/
showAutomatically: boolean;
/**
The title of the introduction screen, located in the top bar.
@defaultValue new StyledText({
"text": "?introScreenTitle",
"color": "?sbColorOnSurface"
});
*/
title: StyledText;
/**
The text explanation of the introduction screen.
@defaultValue new StyledText({
"text": "?introScreenText",
"color": "?sbColorOnSurface"
});
*/
explanation: StyledText;
/**
Configuration of the 'Done' / 'Start scanning' button.
@defaultValue new ButtonConfiguration({
"text": "?introScreenDoneButton",
"accessibilityDescription": "?accessibilityDescriptionIntroScreenDoneButton",
"background": new BackgroundStyle({
"strokeColor": "#00000000",
"fillColor": "?sbColorPrimary",
"strokeWidth": 0.0
}),
"foreground": new ForegroundStyle({
"color": "?sbColorOnPrimary"
})
});
*/
doneButton: ButtonConfiguration;
/** @param source {@displayType `DeepPartial<TextPatternScannerIntroScreenConfiguration>`} */
constructor(source?: DeepPartial<TextPatternScannerIntroScreenConfiguration>);
}