Movement Training< Only android support >
Sets monitor training state listener
Modify the training state on the bracelet, and obtain the current measurement state by monitoring the data stream trainingStateEveStm.
_blePlugin.trainingStateEveStm.listen(
(int event) {
/// Do something with new state
});
Start training
_blePlugin.startTraining(int type);
Parameter Description :
Type is the same as "Heart Rate". Type is the same.
Sets training state
_blePlugin.setTrainingState(TrainingHeartRateStateType);
Parameter Description :
TrainingHeartRateStateType:
type | value | value description |
---|---|---|
trainingPause | int | pause state |
trainingContinue | int | continue state |
trainingComplete | int | end state |