Skip to Content

How to use the barcode scanner (standalone)

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    May 13, 2017 at 11:22 PM

    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

    Add comment
    10|10000 characters needed characters exceeded