NIMSystemNotificationManager Protocol Reference

Conforms to NSObject
Declared in NIMSystemNotificationManagerProtocol.h

Overview

系统通知协议

– fetchSystemNotifications:limit: required method

获取本地存储的系统通知

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

Parameters

notification

当前最早系统消息,没有则传入nil

limit

最大获取数

Return Value

系统消息列表

Discussion

获取本地存储的系统通知

Declared In

NIMSystemNotificationManagerProtocol.h

– fetchSystemNotifications:limit:filter: required method

获取本地存储的系统通知

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

Parameters

notification

当前最早系统消息,没有则传入nil

limit

最大获取数

filter

过滤器

Return Value

系统消息列表

Discussion

获取本地存储的系统通知

Declared In

NIMSystemNotificationManagerProtocol.h

– allUnreadCount required method

未读系统消息数

- (NSInteger)allUnreadCount

Return Value

未读系统消息数

Discussion

未读系统消息数

Declared In

NIMSystemNotificationManagerProtocol.h

– allUnreadCount: required method

未读系统消息数

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

Parameters

filter

过滤器

Return Value

未读系统消息数

Discussion

未读系统消息数

Declared In

NIMSystemNotificationManagerProtocol.h

– deleteNotification: required method

删除单条系统消息

- (void)deleteNotification:(NIMSystemNotification *)notification

Parameters

notification

系统消息

Discussion

删除单条系统消息

Declared In

NIMSystemNotificationManagerProtocol.h

– deleteAllNotifications required method

删除所有系统消息

- (void)deleteAllNotifications

Discussion

删除所有系统消息

Declared In

NIMSystemNotificationManagerProtocol.h

– deleteAllNotifications: required method

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

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

Parameters

filter

过滤器

Discussion

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

Declared In

NIMSystemNotificationManagerProtocol.h

– markNotificationsAsRead: required method

标记单条系统消息为已读

- (void)markNotificationsAsRead:(NIMSystemNotification *)notification

Parameters

notification

系统消息

Discussion

标记单条系统消息为已读

Declared In

NIMSystemNotificationManagerProtocol.h

– markAllNotificationsAsRead required method

标记所有系统消息为已读

- (void)markAllNotificationsAsRead

Discussion

标记所有系统消息为已读

Declared In

NIMSystemNotificationManagerProtocol.h

– markAllNotificationsAsRead: required method

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

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

Parameters

filter

过滤器

Discussion

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

Declared In

NIMSystemNotificationManagerProtocol.h

– sendCustomNotification:toSession:completion: required method

发送自定义系统通知

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

Parameters

notification

系统通知

session

接收方

completion

发送结果回调

Discussion

发送自定义系统通知

仅支持个人和群。聊天室不支持

Declared In

NIMSystemNotificationManagerProtocol.h

– addDelegate: required method

添加系统消息通知委托

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

Parameters

delegate

系统通知回调

Discussion

添加系统消息通知委托

Declared In

NIMSystemNotificationManagerProtocol.h

– removeDelegate: required method

移除系统消息通知委托

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

Parameters

delegate

系统通知回调

Discussion

移除系统消息通知委托

Declared In

NIMSystemNotificationManagerProtocol.h