Set up left and right hand to wear
Description of wearing on the left and right hand
- IDOSetLeftOrRightInfoBuletoothModel
Parameter | Description | Remark |
---|---|---|
isRight | Whether to wear on the right hand | bool |
Command code
Objc:
IDOSetLeftOrRightInfoBuletoothModel * model = [IDOSetLeftOrRightInfoBuletoothModel currentModel];
[IDOFoundationCommand setLeftRightHandCommand:model
callback:^(int errorCode) {
if (errorCode == 0) {
//Set successfully
}else if (errorCode == 6) {
//Device not supported
}else {
//Setup failed
}
}];
Swift:
let model = IDOSetLeftOrRightInfoBuletoothModel.current();
IDOFoundationCommand.setLeftRightHand(model) { (errorCode) in
if errorCode == 0 {
//Set successfully
}else if errorCode == 6{
//Device does not support this method
}else {
//Wrong setting
}
};