Barcode Pick Async Mapper Product Provider
Defined under the namespace Scandit.Datacapture.Barcode.Pick
- BarcodePickAsyncMapperProductProvider
class BarcodePickAsyncMapperProductProvider : BarcodePickProductProvider
Added in version 6.22.0
Usage example:
const products = [ new BarcodePickProduct("780846124122", 2), new BarcodePickProduct("750865926478", 1), new BarcodePickProduct("984579832123", 4), ] const productProviderCallback = { productIdentifierForItems: (itemsData, callback) => { myDb.findAndMapProductsForItemsData(items).then((value) => { callback.onData(value); }); } }; const productProvider = new BarcodePickAsyncMapperProductProvider(products, productProviderCallback);
- constructor(productsToPick, callback)
constructor(productsToPick: BarcodePickProduct[], callback: BarcodePickAsyncMapperProductProviderCallback)
Added in version 6.22.0
Creates a new instance with the given set of BarcodePickProduct and callback to map items to products asynchronously.
- updateProductList(products)
updateProductList(products: BarcodePickProduct[]): Promise<
void>Added in version 8.2.0
Replaces the products database to the newly provided list. This will reset scanning and all the previous picking progress will be lost.