设置快捷方式

功能表

__IDO_FUNCTABLE__.funcTable18Model.shortcut

快捷方式模型说明

  • IDOSetShortcutInfoBluetoothModel
参数 说明 备注
shortcutType 快捷方式类型 0:无效,1:拍照,2:运动模式,3:勿扰模式

命令代码

Objc:

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

Swift:

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