I’m finally making progress on my iOS application. I am connecting to a Linea Pro barcode scanner. I finally have a connection state event being thrown but my barcodeData event is not. Both are added via AddHandler. Definition below. Am I declaring something wrong?
’ Notification sent when barcode is successfuly read. This notification is used when barcode type is set to BARCODE_TYPE_DEFAULT or BARCODE_TYPE_EXTENDED.
’ @param barcode - string containing barcode data
’ @param type - barcode type, one of the BAR_* constants
’ -(void)barcodeData:(NSString *)barcode type:(int)type;
Public Sub BarcodeData(oObject as BTDeviceDelegate, barcode as text, type as integer)
//Never gets called
lblBarcode.text = "Barcode: " + barcode + " Type: " + Type.ToText
They are setup in the Open event of my view:
[code]dim oDTDelegate as new BTDeviceDelegate
if oDTDelegate.isNil = false then
AddHandler oDTDelegate.BarcodeData, Addressof BarcodeData
AddHandler oDTDelegate.ConnectionState, AddressOf ConnectionState
And is there any way to tell if the delegate is get called but my declaration is wrong?