To retrieve the model IDs of ConsumerPhysics models, use the ScioCloud.getCPModels() methods, and create the ScioCloudModelsCallback methods:

  • onSuccess(): Returns a list of all CP Models. Use this model ID to send to the cloud to compare with the scanned sample.

  • onError(): Returns the error message.

 

The following code sample shows how to retrieve the model ID:

getScioCloud().getCPModels(new ScioCloudCPModelsCallback() {
   @Override
   public void onSuccess(List<ScioCPModel> models) {
   }

   @Override
   public void onError(int code, String error) {
   }
});