capacitor-plugin-scanbot-sdk
Version:
Scanbot Document and Barcode Scanner SDK for Capacitor
20 lines (19 loc) • 1.07 kB
TypeScript
import type { ResultWrapper } from './types/base/customTypes';
import type { TextPatternScannerScreenConfiguration } from './types/core/ui_v2/text_pattern/TextPatternScannerScreenConfiguration';
import type { TextPatternScannerUiResult } from './types/core/ui_v2/text_pattern/TextPatternScannerUiResult';
/**
* Entry point for all Text Pattern scanning features.
*/
export declare const ScanbotTextPattern: {
/**
* Opens the Ready-To-Use UI Text Pattern scanner with the desired configuration.
* @param {TextPatternScannerScreenConfiguration} configuration - The Text Pattern scanner configuration to be used for scanning.
* @returns {Promise<ResultWrapper<TextPatternScannerUiResult>>} - The result of the Text Pattern scanning operation.
*/
startScanner(configuration: TextPatternScannerScreenConfiguration): Promise<ResultWrapper<TextPatternScannerUiResult>>;
/**
* Forces the Ready-To-Use UI Text Pattern scanner to close if it is currently open.
* @returns {Promise<void>}
*/
forceCloseScanner(): Promise<void>;
};