NIMSDK-iOS
|
#import <NIMSystemNotificationManagerProtocol.h>
构造函数 | |
(nullable NSArray< NIMSystemNotification * > *) | - fetchSystemNotifications:limit: |
(nullable NSArray< NIMSystemNotification * > *) | - fetchSystemNotifications:limit:filter: |
(NSInteger) | - allUnreadCount |
(NSInteger) | - allUnreadCount: |
(void) | - deleteNotification: |
(void) | - deleteAllNotifications |
(void) | - deleteAllNotifications: |
(void) | - markNotificationsAsRead: |
(void) | - markAllNotificationsAsRead |
(void) | - markAllNotificationsAsRead: |
(void) | - sendCustomNotification:toSession:completion: |
(void) | - addDelegate: |
(void) | - removeDelegate: |
系统通知协议
- (void) addDelegate: | (id< NIMSystemNotificationManagerDelegate >) | delegate |
添加系统消息通知委托
delegate | 系统通知回调 |
- (NSInteger) allUnreadCount |
未读系统消息数
- (NSInteger) allUnreadCount: | (nullable NIMSystemNotificationFilter *) | filter |
未读系统消息数
filter | 过滤器 |
- (void) deleteAllNotifications |
删除所有系统消息
- (void) deleteAllNotifications: | (nullable NIMSystemNotificationFilter *) | filter |
删除所有命中过滤器的系统消息
filter | 过滤器 |
- (void) deleteNotification: | (NIMSystemNotification *) | notification |
删除单条系统消息
notification | 系统消息 |
- (nullable NSArray< NIMSystemNotification * > *) fetchSystemNotifications: | (nullable NIMSystemNotification *) | notification | |
limit: | (NSInteger) | limit | |
获取本地存储的系统通知
notification | 当前最早系统消息,没有则传入nil |
limit | 最大获取数 |
- (nullable NSArray< NIMSystemNotification * > *) fetchSystemNotifications: | (nullable NIMSystemNotification *) | notification | |
limit: | (NSInteger) | limit | |
filter: | (nullable NIMSystemNotificationFilter *) | filter | |
获取本地存储的系统通知
notification | 当前最早系统消息,没有则传入nil |
limit | 最大获取数 |
filter | 过滤器 |
- (void) markAllNotificationsAsRead |
标记所有系统消息为已读
- (void) markAllNotificationsAsRead: | (nullable NIMSystemNotificationFilter *) | filter |
标记所有命中过滤器的系统消息为已读
filter | 过滤器 |
- (void) markNotificationsAsRead: | (NIMSystemNotification *) | notification |
标记单条系统消息为已读
notification | 系统消息 |
- (void) removeDelegate: | (id< NIMSystemNotificationManagerDelegate >) | delegate |
移除系统消息通知委托
delegate | 系统通知回调 |
- (void) sendCustomNotification: | (NIMCustomSystemNotification *) | notification | |
toSession: | (NIMSession *) | session | |
completion: | (nullable NIMSystemNotificationHandler) | completion | |
发送自定义系统通知
notification | 系统通知 |
session | 接收方 |
completion | 发送结果回调 @discussion 仅支持个人和群。聊天室不支持 |