Add Barcode scan function to search field/filter


I have a requirement for a mobile device to be able to scan a barcode and populate the result into a knack search field/filter, (and maybe even perform the actual search based on the scanned code)

I have a search field on a page but when editing the search field, there isn't an 'add icon' option or area to add code or url to invoke a barcode scanner app on a mobile device.

I'd like to incorporate something similar to the options in the following links, where I can use the code to invoke the IntentIntegrator from a button or icon placed next to the search field

Alternatively, if anyone has any other suggestions then I'd be very grateful.