Set up do not disturb mode

Function table

__IDO_FUNCTABLE__.funcTable13Model.doNotDisturb

Description of the do not disturb mode

  • IDOSetNoDisturbModeInfoBluetoothModel
Parameter Description Remark
isOpen Switch bool
startHour Start (Hour) int
startMinute Start (Minute) int
endHour Finish (Hour) int
endMinute Finish (Minute) int
isHaveRangRepeat Whether there is an interval repeat reminder bool
repeat Repeat set [Monday,Tuerday,Wednesday,Thursday,Friday,Saturday,Sunday]
noonTimeOnOff Lunch break switch bool
noonTimeStartHour The hour of lunch break beginning int
noonTimeStartMinute The minute of lunch break beginning int
noonTimeEndHour The hour of lunch break finishing int
noonTimeEndMinute The minute of lunch break finishing int

命令代码

Objc:

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

Swift:

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