In many cases, and especially when a high volume of barcodes or catalog images are scanned within an application, it is beneficial to implement a scanner that is separate from the visual search experience. While it is possible to scan within a Universal FullUI mode, having an independent scanner with it's own dedicated UI is more effective in making a user aware of the ability to scan barcodes or images. In addition, having a barcode icon (separate from a visual search icon) that launches the scanning experience provides a way for users to naturally and quickly identify the feature.
Launching the Universal Lens
The universal lens in this case works no different than a traditional universal lens implementation. When the camera icon is clicked, launch a SlyceActivity in Universal mode. Note that it is still possible to scan barcodes and images in the universal experience, unless configured otherwise.
SlyceUI.startSlyceActivity(MainActivity.this, Slyce.getInstance(MainActivity.this), SlyceActivityMode.UNIVERSAL);
Launching the Scanner
In order to launch a dedicated scanning experience, the FullUI mode should again be launched. However in this case, the Picker mode will be used. This will require a barcode or image scanning lens to be configured for the space that is being used, and require that other additional lenses (such as a Visual Search specific lens) are not enabled. These configurations are server-side and can be made on request.
SlyceUI.startSlyceActivity(MainActivity.this, Slyce.getInstance(MainActivity.this), SlyceActivityMode.PICKER);
When the picker mode is launched with a single Barcode or Image Match lens enabled, Slyce will provide a dedicated scanning UI that is designed for a scanning-only experience.