Get Walking Alert
Function table
__IDO_FUNCTABLE__.funcTable37Model.walkReminderTimeGoal
Walking alert model description
- IDOSetWalkReminderBluetoothModel
| Parameter | Description | Notes |
|---|---|---|
| onOff | On Off | bool |
| goalStep | goal step | int |
| startHour | Strat (Hour) | int |
| startMinute | start(Minute) | int |
| endHour | end(Hour) | int |
| endMinute | end(Minute) | int |
| repeat | repeat | array(number) [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday] |
| goalTime | goal time | Unit(Hour) |
| notifyFlag | Notify flag | 0 is invalid; 1: enable notification; 2: silent notification; 3: disable notification __IDO_FUNCTABLE__.funcTable38Model.walkReminderAddNotify Only the function table supports |
Command code
Objc:
[IDOFoundationCommand getWalkReminderCommand:^(int errorCode, IDOSetWalkReminderBluetoothModel * _Nullable data) {
if (errorCode == 0) {
//get success
}else if (errorCode == 6) {
//device not supported
}else {
//get failed
}
}];
Swift:
IDOFoundationCommand.getWalkReminderCommand { (errorCode, model) in
if errorCode == 0 {
//get success
}else if errorCode == 6 {
//device not supported
}else {
//get failed.
}
};