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

Return value

Returns BS_SDK_SUCCESS if performed successfully, or a corresponding error code if an error occurs.