Trigger scan barcode on ios only

I have a project that’s used by zebra scan guns and ipads. On my input field, I have an onFocus event that starts the Scan Barcode action. Since the scan guns have a built-in data wedge, I only want that even to fire if the device == ‘ios’. I don’t see a way to call the Scan Barcode action through scripting, only as an action in the event configuation.