获取第三方应用的通知状态

功能表

__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:

[IDOFoundationCommand getMessageNoticeStateCommand:^(int errorCode, IDOSetV3NotifyStateModel * _Nullable data) {
    if (errorCode == 0) {
       //获取成功
    }else if (errorCode == 6) {
       //设备不支持
    }else {
       //获取失败
    }
}];

Swift:

IDOFoundationCommand.getMessageNoticeStateCommand { (errorCode, model) 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 ""