TrainingSampleCheckerResult indicates the result of a check of a training sample.
There are three supported result: SUCCESS, WARNING, FAILURE. An optional string description can be supplied to better assist user figuring out why the training sample fails. This class is used as the return value for the functions passed to useTrainingSampleChecker().
You can create a TrainingSampleCheckerResult like this:
return TrainingSampleCheckerResult(TrainingSampleCheckerResult::FAILURE, "Error: Something went wrong.");
Or just use the Result directly if you don't want to supply a custom message:
return TrainingSampleCheckerResult::SUCCESS; // use default message
- Examples:
- user_accelerometer_gestures.cpp.