Get DND Mode

Function table

__IDO_FUNCTABLE__.funcTable20Model.getNoDisturb

DND Mode Model Description

  • IDOSetNoDisturbModeInfoBluetoothModel
Parameter Description Notes
isOpen switch bool
startHour strat (hour) int
startMinute start (minute) int
endHour end (hour) int
endMinute end (minute) int
isHaveRangRepeat Whether there is an interval repeat reminder bool
repeat repeat set [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]
noonTimeOnOff lunch break switch bool
noonTimeStartHour when lunch break begins int
noonTimeStartMinute Start of lunch break int
noonTimeEndHour end of lunch break int
noonTimeEndMinute end of lunch break int

Command code

Objc:

[IDOFoundationCommand getNotDisturbCommand:^(int errorCode, IDOSetNoDisturbModeInfoBluetoothModel * _Nullable data) {
    if (errorCode == 0) {
       //get success
    }else if (errorCode == 6) {
       //device not supported
    }else {
       //get failed
    }
}];

Swift:

IDOFoundationCommand.getNotDisturbCommand { (errorCode, model) in
    if errorCode == 0 {
        //get success
    }else if errorCode == 6 {
       //device not supported
    }else {
       //get failed.                                                                                                                                                                                                                                        
    }
};
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 ""