NIMSDK-iOS
载入中...
搜索中...
未找到
<NIMSystemNotificationManager>协议 参考

#import <NIMSystemNotificationManagerProtocol.h>

类 <NIMSystemNotificationManager> 继承关系图:

构造函数

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

详细描述

系统通知协议

函数文档

◆ addDelegate:

- (void) addDelegate: (id< NIMSystemNotificationManagerDelegate >)  delegate

添加系统消息通知委托

参数
delegate系统通知回调

◆ allUnreadCount

- (NSInteger) allUnreadCount

未读系统消息数

返回
未读系统消息数

◆ allUnreadCount:

- (NSInteger) allUnreadCount: (nullable NIMSystemNotificationFilter *)  filter

未读系统消息数

参数
filter过滤器
返回
未读系统消息数

◆ deleteAllNotifications

- (void) deleteAllNotifications

删除所有系统消息

◆ deleteAllNotifications:

- (void) deleteAllNotifications: (nullable NIMSystemNotificationFilter *)  filter

删除所有命中过滤器的系统消息

参数
filter过滤器

◆ deleteNotification:

- (void) deleteNotification: (NIMSystemNotification *)  notification

删除单条系统消息

参数
notification系统消息

◆ fetchSystemNotifications:limit:

- (nullable NSArray< NIMSystemNotification * > *) fetchSystemNotifications: (nullable NIMSystemNotification *)  notification
limit: (NSInteger)  limit 

获取本地存储的系统通知

参数
notification当前最早系统消息,没有则传入nil
limit最大获取数
返回
系统消息列表

◆ fetchSystemNotifications:limit:filter:

- (nullable NSArray< NIMSystemNotification * > *) fetchSystemNotifications: (nullable NIMSystemNotification *)  notification
limit: (NSInteger)  limit
filter: (nullable NIMSystemNotificationFilter *)  filter 

获取本地存储的系统通知

参数
notification当前最早系统消息,没有则传入nil
limit最大获取数
filter过滤器
返回
系统消息列表

◆ markAllNotificationsAsRead

- (void) markAllNotificationsAsRead

标记所有系统消息为已读

◆ markAllNotificationsAsRead:

- (void) markAllNotificationsAsRead: (nullable NIMSystemNotificationFilter *)  filter

标记所有命中过滤器的系统消息为已读

参数
filter过滤器

◆ markNotificationsAsRead:

- (void) markNotificationsAsRead: (NIMSystemNotification *)  notification

标记单条系统消息为已读

参数
notification系统消息

◆ removeDelegate:

- (void) removeDelegate: (id< NIMSystemNotificationManagerDelegate >)  delegate

移除系统消息通知委托

参数
delegate系统通知回调

◆ sendCustomNotification:toSession:completion:

- (void) sendCustomNotification: (NIMCustomSystemNotification *)  notification
toSession: (NIMSession *)  session
completion: (nullable NIMSystemNotificationHandler completion 

发送自定义系统通知

参数
notification系统通知
session接收方
completion发送结果回调 @discussion 仅支持个人和群。聊天室不支持

该协议的文档由以下文件生成: