UNPKG

expo-zebra-scanner

Version:

Module to use Zebra Scanner with React Native Expo

23 lines 1.48 kB
import { EventSubscription } from 'expo-modules-core'; import { BarcodeEvent } from './ExpoZebraScannerEvent'; import { BroadcastEvent, BroadcastExtras } from './ExpoZebraBroadcastEvent'; import { CreateProfileData } from './ProfileConstants'; export declare function startScan(): any; export declare function stopScan(): any; export declare function addListener(listener: (event: BarcodeEvent) => void): EventSubscription; export declare function removeListener(listener: any): void; export declare function startCustomScan(action: string): any; export declare function stopCustomScan(): any; export declare function addCustomListener<T = any>(listener: (event: T) => void): EventSubscription; export declare function sendBroadcast(bundle: BroadcastEvent): void; export declare function sendActionCommand(extraName: string, extraData: BroadcastExtras | string): void; /** * Creates a new Datawedge profile with intent output enabled * @param param.PROFILE_NAME - Name of the profile to create * @param param.PACKAGE_NAME - The package of your app * @param param.PARAM_LIST - Optional scanner params: https://techdocs.zebra.com/datawedge/6-3/guide/api/setconfig/#scannerinputparameters */ export declare function createIntentDatawedgeProfile({ PROFILE_NAME, PACKAGE_NAME, PARAM_LIST, }: CreateProfileData): void; export { BroadcastExtras, BroadcastEvent }; export declare function getDataWedgeVersion(): Promise<[number, number, number]>; //# sourceMappingURL=index.d.ts.map