NIMSDK-iOS
载入中...
搜索中...
未找到
NIMBroadcastManagerProtocol.h
浏览该文件的文档.
1//
2// NIMBroadcastManagerProtocol.h
3// NIMLib
4//
5// Created by Netease.
6// Copyright © 2017年 Netease. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10
11NS_ASSUME_NONNULL_BEGIN
12
14
15/**
16 * 广播消息委托
17 */
18@protocol NIMBroadcastManagerDelegate <NSObject>
19
20/**
21 * 收到广播消息回调
22 *
23 * @param broadcastMessage 广播消息
24 */
25
26- (void)onReceiveBroadcastMessage:(NIMBroadcastMessage *)broadcastMessage;
27@end
28
29/**
30 * 广播消息协议
31 */
32@protocol NIMBroadcastManager <NSObject>
33
34/**
35 * 添加广播消息委托
36 *
37 * @param delegate 广播通知回调
38 */
39- (void)addDelegate:(id<NIMBroadcastManagerDelegate>)delegate;
40
41/**
42 * 移除广播消息委托
43 *
44 * @param delegate 广播通知回调
45 */
46- (void)removeDelegate:(id<NIMBroadcastManagerDelegate>)delegate;
47
48@end
49
50NS_ASSUME_NONNULL_END
Definition: NIMBroadcastMessage.h:17