设置第三方应用的通知状态

第三方应用的通知功能表

__IDO_FUNCTABLE__.funcTable38Model.setNotifyAddAppName

第三方应用的通知状态模型说明

  • IDOSetAppNotifyStateItemModel
参数 说明 备注
evtType 事件类型 int(固件动态分配的,)
notifyState 通知状态 int (允许通知:1,静默通知 :2, 关闭通知:3)
picFlag 图片icon更新状态 int (0:无效; 1:有下载对应的图片;2:没有对应的图片)
设置忽略此属性,只支持获取
packName 应用包名 str 设置忽略此属性,只支持获取
appName 应用名称 str 设置忽略此属性,只支持获取
  • IDOSetV3NotifyStateModel
参数 说明 备注
msgVersion 版本号 暂时无需赋值
operat 操作 1:增加; 2:修改; 3:获取查询
allSendNum 发送的总包数 int
nowSendIndex 当前发送的序列 int
itemsNum 集合个数 int
allOnOff 所有消息通知开关 bool
items 通知状态集合 array (IDOSetAppNotifyStateItemModel)

命令代码

Objc:

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

Swift:

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