Set up call favorites

Function table

__IDO_FUNCTABLE__.funcTable38Model.syncContact

Description of the common contact model for calls

  • IDOSetContactItemModel
Parameter Description Remark
phone Number str
name Name str
  • IDOSetSyncContactModel
Parameter Description Remark
conVersion Verssion No assignment needed for now
operat Operation No assignment required 0:Invalid;
1:Set up,
2:Inquire
itemsNum The number of items int
items Contact collection array (IDOSetContactItemModel)

Command code

Objc:

IDOSetSyncContactModel * model = [IDOSetSyncContactModel currentModel];
[IDOFoundationCommand setSyncContactCommand:model
                                   callback:^(int errorCode) {
    if (errorCode == 0) {
       //Set successfully
    }else if (errorCode == 6) {
      //Device not supported
    }else {
      //Setup failed
    }
}];

Swift:

let model = IDOSetSyncContactModel.current();
IDOFoundationCommand.setSyncContact(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 ""