This sample code demonstrates how to levarage Slyce's Camera UI within your own application without requiring you to commit to a full UI integration.
Download the latest official SDK release and copy it into your app/libs
directory. You can optionally replace this step with the Maven integration
process as described in the official API Documentation.
Paste your SDK credentials into the constants defined in app/src/main/java/it/slyce/slyce_camera_only/main/viewcontroller/MainActivity.java
.
private static final String SLYCE_ACCOUNT_ID = "";
private static final String SLYCE_API_KEY = "";
private static final String SLYCE_SPACE_ID = "";
You should now be able to run the sample application. When the app first launches you will be presented with the Slyce Camera UI (which you can customize as needed). All SDK
events, most notably when a search has completed and results have been returned, are exposed within app/src/main/java/it/slyce/slyce_camera_only/custom/CustomUIFragment.java
. This implementation demonstrates how you might add your own aplication behavior when dealing with the raw SDK results.
For more information, be sure to check out the documentation here or from the official SDK repository here
Copyright Slyce, Inc 2014-2020