Server API > BS2_SetBarcodeScanListener
[+2.8.2] Register the listener function that detects barcode input.
#include "BS_API.h" int BS2_SetBarcodeScanListener(void* context, OnBarcodeScanned ptrBarcodeScanned);
context
: ContextptrBarcodeScanned
: Callback function to receive barcode when the device is scanned
Returns BS_SDK_SUCCESS
if performed successfully, or a corresponding error code if an error occurs.