Intercept hardware pressed keys from external accessory (bluetooth barcode scanner)

Hi guys,

I've an external bluetooth accessory which is a barcode scanner.

Using Android I can listen for key events coming from this device, I can redirect them for my own use and avoid to conflict them with the internal software keyboard. Is this possible on iOS or is there a security constraint on this feature?

Thanks