react-native-urovo
Version:
React native bindings for urovo scanners
28 lines • 1.45 kB
TypeScript
import { OutputMode, PropertyID, Symbology, type PropertyIdValue } from './NativeUrovo';
export type ScanResult = {
value: string;
type: number;
symbology: Symbology;
};
export declare enum UROVO_EVENTS {
ON_SCAN = "ON_SCAN"
}
/**
* Opens the Urovo scanner.
* @returns A promise that resolves to `true` if the scanner was successfully opened| otherwise `false`.
*/
export declare function openScanner(mode?: OutputMode): Promise<boolean> | undefined;
export declare function switchOutputMode(mode: OutputMode): Promise<boolean> | undefined;
export declare function getOutputMode(): Promise<OutputMode> | undefined;
export declare function closeScanner(): Promise<boolean> | undefined;
export declare function enableAllSymbologies(enable?: boolean): Promise<Symbology[]> | undefined;
export declare function getParameters(ids: PropertyID[]): Promise<Record<PropertyID, PropertyIdValue>> | undefined;
export declare function resetScannerParameters(): Promise<boolean> | undefined;
export type SetParameterArg = Partial<Record<PropertyID, PropertyIdValue>>;
export declare function setParameter(params: SetParameterArg): Promise<boolean> | undefined;
export declare function enableSymbologies(symbologies: Symbology[], enable?: boolean): Promise<Symbology[]> | undefined;
declare const Urovo: import("./NativeUrovo").Spec | null;
export * from './types';
export * from './hooks';
export default Urovo;
//# sourceMappingURL=index.d.ts.map