Old revisions Add to book Export to PDF Book Creator Add this page to your book Book Creator Remove this page from your book Manage book (0 page(s)) Help Server API > BS2_SetBarcodeScanListener BS2_SetBarcodeScanListener [+2.8.2] Register the listener function that detects barcode input. Declaration #include "BS_API.h" int BS2_SetBarcodeScanListener(void* context, OnBarcodeScanned ptrBarcodeScanned); Parameters [In] context : Context [In] ptrBarcodeScanned : Callback function to receive barcode when the device is scanned Return value Returns BS_SDK_SUCCESS if performed successfully, or a corresponding error code if an error occurs.