NIMSDK-iOS
载入中...
搜索中...
未找到
NIMQChatRTCChannelManagerProtocol.h
浏览该文件的文档.
1//
2// NIMQChatRTCChannelManagerProtocol.h
3// NIMLib
4//
5// Created by Netease.
6// Copyright © 2022 Netease. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10
11#import "NIMQChatAPIDefs.h"
12
13NS_ASSUME_NONNULL_BEGIN
14
15
21/**
22 * 获取token的结果回调
23 *
24 * @param error 错误信息
25 * @param result 回调结果
26 */
27typedef void(^NIMQChatRequestRTCTokenHandler)(NSError *__nullable error, NIMQChatRequestTokenResult *__nullable result);
28
29/**
30 * 获取多媒体频道信息的结果回调
31 *
32 * @param error 错误信息
33 * @param result 回调结果
34 */
35typedef void(^NIMQChatGetRTCChannelHandler)(NSError *__nullable error, NIMQChatRTCChannelInfo *__nullable result);
36
37/**
38 * 获取多媒体频道在线成员的结果回调
39 *
40 * @param error 错误信息
41 * @param result 回调结果
42 */
43typedef void(^NIMQChatGetRTCChannelOnlineMembersHandler)(NSError *__nullable error, NSArray <NIMQChatRTCChannelOnlineMember *> *__nullable result);
44
45
46/**
47 * 圈组频道管理器
48 */
49@protocol NIMQChatRTCChannelManager <NSObject>
50
51/**
52 * 获取token
53 *
54 * @param deviceId id
55 * @param completion 结果回调
56 */
57- (void)requestTokenWithDeviceId:(NSString *)deviceId completion:(nullable NIMQChatRequestRTCTokenHandler)completion;
58
59/**
60 * 修改圈组多频道信息
61 *
62 * @param param 传入参数
63 * @param completion 结果回调
64 */
65- (void)updateRTCChannel:(nonnull NIMQChatRTCUpdateChannelInfoParam *)param
66 completion:(nullable NIMQChatHandler)completion;
67
68/**
69 * 获取多媒体频道信息
70 *
71 * @param param 传入参数
72 * @param completion 结果回调
73 */
74- (void)getRTCChannelInfo:(nonnull NIMQChatChannelIdInfo *)param
75 completion:(nullable NIMQChatGetRTCChannelHandler)completion;
76
77/**
78 * 查询多媒体频道在线成员信息
79 *
80 * @param param 传入参数
81 * @param completion 结果回调
82 */
83- (void)getRTCChannelOnlineMembers:(nonnull NIMQChatChannelIdInfo *)param
84 completion:(nullable NIMQChatGetRTCChannelOnlineMembersHandler)completion;
85@end
86
87NS_ASSUME_NONNULL_END
void(^ NIMQChatHandler)(NSError *__nullable error)
Definition: NIMQChatDefs.h:280
void(^ NIMQChatGetRTCChannelHandler)(NSError *__nullable error, NIMQChatRTCChannelInfo *__nullable result)
Definition: NIMQChatRTCChannelManagerProtocol.h:35
void(^ NIMQChatRequestRTCTokenHandler)(NSError *__nullable error, NIMQChatRequestTokenResult *__nullable result)
Definition: NIMQChatRTCChannelManagerProtocol.h:27
void(^ NIMQChatGetRTCChannelOnlineMembersHandler)(NSError *__nullable error, NSArray< NIMQChatRTCChannelOnlineMember * > *__nullable result)
Definition: NIMQChatRTCChannelManagerProtocol.h:43
Definition: NIMQChatChannelIdInfo.h:15
Definition: NIMQChatRTCChannelInfo.h:13
Definition: NIMQChatRTCChannelOnlineMember.h:17
Definition: NIMQChatRTCUpdateChannelInfoParam.h:14
Definition: NIMQChatRequestTokenResult.h:14