设置防丢失命令

功能表

__IDO_FUNCTABLE__.funcTable11Model.antilost

防丢模型说明

  • IDOSetPreventLostInfoBuletoothModel
参数 说明 备注
levelType 防丢失级别 0:不防丢,1:近距离防丢,2:中距离防丢,3:远距离防丢

命令代码

Objc:

IDOSetPreventLostInfoBuletoothModel * model = [IDOSetPreventLostInfoBuletoothModel currentModel];
[IDOFoundationCommand setPreventLostCommand:model
                                   callback:^(int errorCode) {
    if (errorCode == 0) {
       //设置成功
    }else if (errorCode == 6) {
      //设备不支持
    }else {
      //设置失败
    }
}];

Swift:

let model = IDOSetPreventLostInfoBuletoothModel.current();
IDOFoundationCommand.setPreventLost(model) { (errorCode) in
     if errorCode == 0 {
        //设置成功
     }else if errorCode == 6{
        //设备不支持此方法
     }else {
       //设置错误
     }
};
Copyright © 2015-2020 IDO. All rights reserved. all right reserved,powered by Gitbook修订时间: 2023-12-18 10:04:13

results matching ""

    No results matching ""