Goal Steps

Sets goal steps

Push the user's target step number to the watch. When the number of activity steps on the day reaches the target number of steps, the watch will remind you to reach the target.

_blePlugin.sendGoalSteps(int goalSteps);

Gets goal steps

Gets the target number of steps set in the watch.

int goalSteps = await _blePlugin.queryGoalSteps;

Set daily goals

Daily goals are to set daily target values.

await _blePlugin.sendDailyGoals(
    DailyGoalsInfoBean(
        steps: 100,
        calories: 500,
        trainingTime: 300
    )
);

DailyGoalsInfoBean:

stepscaloriestrainingTime
intintint
Target number of stepsTarget calories (kilocalories)Target exercise duration (unit: minute)

Querying daily goals

DailyGoalsInfoBean info = await _blePlugin.queryDailyGoals

Set workout day goals

Exercise day is to mark a day as an exercise day. You can set a separate target value. The target value of the exercise day overrides the daily target value.

_blePlugin.sendTrainingDayGoals(
    DailyGoalsInfoBean(
        steps: 100,
        calories: 500,
        trainingTime: 300
    )
);

Look up workout day goals

DailyGoalsInfoBean info = await _blePlugin.queryTrainingDayGoals

Set up a workout day

_blePlugin.sendTrainingDays(
    TrainingDayInfoBean(
        enable: false,
        trainingDays: [0, 1, 2]
    )
);

TrainingDayInfoBean:

enabletrainingDays
booleanint[]
Enable or notExercise day, the same alarm clock

Check exercise day

TrainingDayInfoBean info = await _blePlugin.queryTrainingDay
Last Updated: