New Features in SDK 5.5
Preview Application
The preview app has been updated to include a welcome screen that shows the account you are connected to and allows you to scan a new QR code.
Pinch to Zoom
Users can now zoom in when using the Slyce camera in full UI mode by pinching on the camera screen.
Tooltips
We are continuing to make sure end users have the most seamless experience in the camera view. In the 5.5.0 release, we included small tooltips which appear on the camera screen. The tooltip text can be customized by setting the value in the localization files for each of the lens types.
Corner Radius
Ensuring a seamless flow between your application and the Slyce UI is extremely important, and it comes down to the little details. In the 5.5.0 release, we exposed a theming property to set the corner radius of the user-generated thumbnails. Developers can set this value to 0 to have square corners, any number above 1 to round the corners, or -1 to ensure the thumbnails appear rounded.
How to set the corner radius
slyce.getTheme().setFloat("userImage_global_cornerRadius", 20f);
New Labs Feature
On our quest to create the best in class visual search experience we continue to experiment with new ways to initiate searches. In the 5.5.0 release, we are introducing a Tap and Hold option in our labs. When enabled, users are prompted to tap and hold for a short moment to initiate the search. We have found this UI to help eliminate accidental searches, which results in end users being more engaged, and feeling better about the search process. Nobody likes to feel like they screwed it up by accidentally tapping when they didn't mean to!
PreferenceManager.getDefaultSharedPreferences(context)
.edit()
.putBoolean("SlyceLabsTapAndHoldEnabled", true)
.apply();
UX Enhancements
- In Batch Capture mode when you tap on the thumbnails, it shows you the product
- Swipe to delete items in the search history
- Refined the flow when uses select an item from their camera roll
- Hide the icons when the coaching tip is up
- Refined the icon placement to ensure they line up and look good!
- Included visual and haptic feedback when a user detects an exact match
Analytics
- Track when the camera launched
Barcode Detection
At times it's useful to be able to access the raw data from Slyce's on-device detection algorithms. To support this, we have enabled a way for developers to listen for local barcode detection events. This enables the developer to use the barcode value to perform a separate API call to populate additional data. A possible use case where you would use this is if you wanted to scan a barcode on a receipt them make a call to your backend which provides the products purchased on that receipt.
How to listen for barcode events
slyceSession.addListener(new SlyceSessionListenerAdapter() {
@Override
public void didPerformDetection(SlyceSession session, SlyceBarcodeDetectionDescriptor descriptor) {
// get barcode value and type from `descriptor`
}
});
Bug Fixes
- Resolved an issue that prevented users from scrolling back up in the product detail web view. This only impacted our Preview application since many clients redirect the user to their native product detail page.
- If your account is only enabled for one lens type and you utilize the picker mode, the lense picker will not appear.
Important Links: