Set up to find your phone
Function table
__IDO_FUNCTABLE__.funcTable11Model.findPhone
Find Phone Model Instructions
- IDOSetFindPhoneInfoBuletoothModel
Parameter | Description | Remark |
---|---|---|
isOpen | Find the phone switch | bool |
Command code
Objc:
IDOSetFindPhoneInfoBuletoothModel * model = [IDOSetFindPhoneInfoBuletoothModel currentModel];
[IDOFoundationCommand setFindPhoneCommand:model
callback:^(int errorCode) {
if (errorCode == 0) {
//Set successfully
}else if (errorCode == 6) {
//Device not supported
}else {
//Setup failed
}
}];
Swift:
let model = IDOSetFindPhoneInfoBuletoothModel.current();
IDOFoundationCommand.setFindPhone(model) { (errorCode) in
if errorCode == 0 {
//Set successfully
}else if errorCode == 6{
//Device does not support this method
}else {
//Wrong setting
}
};