Skip to Content
0

How to use the barcode scanner (standalone)

May 13, 2017 at 07:20 PM

99

avatar image

Hi,

I know how to use the barcode scanner embedded in a search bar but I have no idea how to use it standalone (i.e tap on a random button to start scanning a barcode, not necessarily to filter a list). The documentation mentions a ScannerFactory but I'm new to Swift and the SDK and I can't find a way to use it.

In the Fiori for iOS design guidelines, the scan view is supposed to be able to display an object cell to confirm the object that was scanned (https://experience.sap.com/fiori-design-ios/article/scan-view/). Is this behaviour supported in the current SDK or is this something that we have to implement or that will be added in the future?

Thanks,

Pierre

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Florian Pfeffer
May 13, 2017 at 11:22 PM
0

Hello Pierre,

unfortunately the documentation is a little bit outdated at that place. The ScannerFactory is actually called FUIBarcodeScannerFactory. But also that class cannot be used, cause it is defined as internal (which allows just a usage in the module in which it was defined). The usage is only possible via controls which exposes the functionality (like e.g. a FUISearchBar).

Maybe it will be changed at a later point of time, so that the Barcode Scanner can be used standalone (w/o doing a hack). And hopefully the documentation will be fixed.

To use a barcode scanner independent of SAPs framework you can do an own barcode scanner implementation using the AVFoundation framework or you can check one of the free implementations (just a Google search or check the available barscode scanner Cocoapods packages).

Regards,
Florian

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Thanks Florian, I'll check the open source alternatives.

Pierre

0

You're right, Florian. But we are definitely looking into opening the scanner implementation up and providing a Fiori compliant implementation of the barcode scanner for 'stand-alone' use in a future release

Andreas

1