Sets training state
Future<void> setTrainingState(int training) { return _platform.setTrainingState(training); }