Server API > 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.