#Set the wrist lift command
Function table
__IDO_FUNCTABLE__.funcTable11Model.upHandGesture
Wrist lift model description
- IDOSetHandUpInfoBuletoothModel
| Parameter | Description | Remark |
|---|---|---|
| isOpen | Switch | bool |
| isHasTimeRange | Is there a time gap | bool |
| showSecond | Display time | 3~10 second |
| startHour | Start (Hour) | int |
| startMinute | Start (Minute) | int |
| endHour | Finish (Hour) | int |
| endMinute | Finish (Second) | int |
Command code
Objc:
IDOSetHandUpInfoBuletoothModel * model = [IDOSetHandUpInfoBuletoothModel currentModel];
[IDOFoundationCommand setHandUpCommand:model
callback:^(int errorCode) {
if (errorCode == 0) {
//Set successfully
}else if (errorCode == 6) {
//Device not supported
}else {
//Setup failed
}
}];
Swift:
let model = IDOSetHandUpInfoBuletoothModel.current();
IDOFoundationCommand.setHandUp(model) { (errorCode) in
if errorCode == 0 {
//Set successfully
}else if errorCode == 6{
//Device does not support this method
}else {
//Wrong setting
}
};