Set the fitness coach switch

Function table

__IDO_FUNCTABLE__.funcTable38Model.setFitnessGuidance

Fitness Guidance Switch Model Description

  • IDOSetFitnessGuidanceModel
Parameter Description Remark
mode Switch bool
yes is on
no is off
walkMode Move reminder switch bool
yes is on
no is off
startHour Start hour int
startMinute Start second int
endHour Finish hour int
endMinute Finish second int
notifyFlag Notification Type 0Invalid ;
1:Allow notifications;
2:Silent notification;
3:Turn off notifications
repeat Repeat set [Monday、Tuesday、Wednesday、Thursday、Friday、Saturday、Sunday]
targetSteps Target steps int

Command code

Objc:

IDOSetFitnessGuidanceModel * model = [IDOSetFitnessGuidanceModel currentModel];
[IDOFoundationCommand setFitnessGuidanceCommand:model
                                       callback:^(int errorCode) {
    if (errorCode == 0) {
       //Set successfully
    }else if (errorCode == 6) {
      //Device not supported
    }else {
      //Setup failed
    }
}];

Swift:

let model = IDOSetFitnessGuidanceModel.current();
IDOFoundationCommand.setFitnessGuidance(model) { (errorCode) in
     if errorCode == 0 {
        //Set successfully
     }else if errorCode == 6{
        //Device does not support this method
     }else {
       //Wrong setting
     }
};
Copyright © 2015-2020 IDO. All rights reserved. all right reserved,powered by GitbookModify Date: 2023-12-18 10:04:13

results matching ""

    No results matching ""