Set reminders to move
Function table
__IDO_FUNCTABLE__.funcTable23Model.walkReminder
Walk around reminder model description
- IDOSetWalkReminderBluetoothModel
Parameter | Description | Remark |
---|---|---|
onOff | Switch | bool |
goalStep | Target steps | int |
startHour | Start (Hour) | int |
startMinute | Start (Minute) | int |
endHour | Finish (Hour) | int |
endMinute | Finish (Minute) | int |
repeat | Repeat set | [Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday] |
goalTime | Target Time | Unit (Hour) |
notifyFlag | Notification type | 0 Invalid ; 1:Allow notifications; 2:Silent notification; 3:Turn off notifications __IDO_FUNCTABLE__.funcTable38Model.walkReminderAddNotify Only the function table supports |
Command code
Objc:
IDOSetWalkReminderBluetoothModel * model = [IDOSetWalkReminderBluetoothModel currentModel];
[IDOFoundationCommand setWalkReminderCommand:model
callback:^(int errorCode) {
if (errorCode == 0) {
//Set successfully
}else if (errorCode == 6) {
//Device not supported
}else {
//Setup failed
}
}];
Swift:
let model = IDOSetWalkReminderBluetoothModel.current();
IDOFoundationCommand.setWalkReminder(model) { (errorCode) in
if errorCode == 0 {
//Set successfully
}else if errorCode == 6{
//Device does not support this method
}else {
//Wrong setting
}
};