Set up a one-key call for help
Function table
__IDO_FUNCTABLE__.funcTable11Model.onetouchCalling
One-click call for help model description
- IDOSetOneKeySosInfoBuletoothModel
Parameter | Description | Remark |
---|---|---|
isOpen | Switch | bool |
Command code
Objc:
IDOSetOneKeySosInfoBuletoothModel * model = [IDOSetOneKeySosInfoBuletoothModel currentModel];
[IDOFoundationCommand setOneKeySosCommand:model
callback:^(int errorCode) {
if (errorCode == 0) {
//Set successfully
}else if (errorCode == 6) {
//Device not supported
}else {
//Setup failed
}
}];
Swift:
let model = IDOSetOneKeySosInfoBuletoothModel.current();
IDOFoundationCommand.setOneKeySos(model) { (errorCode) in
if errorCode == 0 {
//Set successfully
}else if errorCode == 6{
//Device does not support this method
}else {
//Wrong setting
}
};