Get 3rd party Applications Notify Status
Function table
__IDO_FUNCTABLE__.funcTable38Model.setNotifyAddAppName
3rd party applications Notify Status model Description
- IDOSetAppNotifyStateItemModel
Parameter | Description | Notes |
---|---|---|
evtType | Event type | int(dynamically allocated by the firmware,) |
notifyState | notification status | int (Allow notifications: 1, Silent notifications: 2, Turn off notifications: 3) |
picFlag | Picture icon update status | int (0: Invalid; 1: There is a corresponding image to download; 2: There is no corresponding image) The setting ignores this property, and only supports the acquisition |
packName | Application package name | str setting ignores this attribute, only supports getting |
appName | Application Name | str setting ignores this attribute, only supports getting |
- IDOSetV3NotifyStateModel
Parameter | Description | Notes |
---|---|---|
msgVersion | version number | No assignment needed for now |
operat | Operat | 1: add; 2: modify; 3: get query |
allSendNum | total number of packets sent | int |
nowSendIndex | currently sent sequence | int |
itemsNum | number of sets | int |
allOnOff | All message notification switch | bool |
items | Notification status collection | array (IDOSetAppNotifyStateItemModel) |
Command code
Objc:
[IDOFoundationCommand getMessageNoticeStateCommand:^(int errorCode, IDOSetV3NotifyStateModel * _Nullable data) {
if (errorCode == 0) {
//get success
}else if (errorCode == 6) {
//device not supported
}else {
//get failed
}
}];
Swift:
IDOFoundationCommand.getMessageNoticeStateCommand { (errorCode, model) in
if errorCode == 0 {
//get success
}else if errorCode == 6 {
//device not supported
}else {
//get failed.
}
};