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
     }
};
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 ""