NERtcCallKit for iOS V3.1.0
载入中...
搜索中...
未找到
NEGroupCallKit.h
浏览该文件的文档.
1// Copyright (c) 2022 NetEase, Inc. All rights reserved.
2// Use of this source code is governed by a MIT license that can be
3// found in the LICENSE file.
4
5#import <Foundation/Foundation.h>
6#import <NERtcSDK/NERtcSDK.h>
7#import <NIMSDK/NIMSDK.h>
8#import "GroupCallParam.h"
9#import "GroupCallResult.h"
10#import "NEGroupCallInfo.h"
11
12NS_ASSUME_NONNULL_BEGIN
13
14@protocol NEGroupCallKitDelegate <NSObject>
15
16@optional
18- (void)onGroupInvitedWithInfo:(NEGroupCallInfo *)info;
19
21- (void)onGroupUserDidChange:(NSArray<GroupCallMember *> *)members;
22
24- (void)onGroupEndCallWithReason:(NSString *)reason withCallId:(NSString *)callId;
25
27- (void)onGroupHangupWithReason:(NSString *)reason;
28
30- (void)onGroupError:(NSError *)error;
31
33- (void)onGroupRemoteUserOpenVideo:(uint64_t)uid withOpen:(BOOL)isOpen;
34
35@end
36
37@interface NEGroupCallKit : NSObject <NIMSDKConfigDelegate>
38
39@property(nonatomic, strong, readonly) NSString *callId;
40
41+ (instancetype)sharedInstance;
42
46- (void)groupCall:(GroupCallParam *)param
47 completion:(nullable void (^)(NSError *_Nullable error,
48 GroupCallResult *_Nullable result))completion;
49
53- (void)groupHangup:(GroupHangupParam *)param
54 completion:(nullable void (^)(NSError *_Nullable error,
55 GroupHangupResult *_Nullable result))completion;
56
60- (void)groupAccept:(GroupAcceptParam *)param
61 completion:(nullable void (^)(NSError *_Nullable error,
62 GroupAcceptResult *_Nullable result))completion;
63
67- (void)groupInvite:(GroupInviteParam *)param
68 completion:(nullable void (^)(NSError *_Nullable error,
69 GroupInviteResult *_Nullable result))completion;
70
74- (void)groupJoin:(GroupJoinParam *)param
75 completion:(nullable void (^)(NSError *_Nullable error,
76 GroupJoinResult *_Nullable result))completion;
77
81- (void)groupQueryCallInfo:(GroupQueryCallInfoParam *)param
82 completion:
83 (nullable void (^)(NSError *_Nullable error,
84 GroupQueryCallInfoResult *_Nullable result))completion;
85
89- (void)groupQueryMembers:(GroupQueryMembersParam *)param
90 completion:(nullable void (^)(NSError *_Nullable error,
91 GroupQueryMembersResult *_Nullable result))completion;
92
95- (void)setupGroupCall:(GroupConfigParam *)param;
96
99- (void)addDelegate:(id<NEGroupCallKitDelegate>)delegate;
100
103- (void)removeDelegate:(id<NEGroupCallKitDelegate>)delegate;
104
105@end
106
107NS_ASSUME_NONNULL_END
定义 GroupCallParam.h:64
定义 GroupCallResult.h:44
定义 GroupCallMember.h:9
定义 GroupCallParam.h:26
定义 GroupCallResult.h:18
定义 GroupCallParam.h:102
定义 GroupCallParam.h:54
定义 GroupCallResult.h:34
定义 GroupCallParam.h:71
定义 GroupCallResult.h:54
定义 GroupCallParam.h:81
定义 GroupCallResult.h:61
定义 GroupCallParam.h:88
定义 GroupCallResult.h:71
定义 GroupCallParam.h:95
定义 GroupCallResult.h:78
定义 NEGroupCallInfo.h:11
定义 NEGroupCallKit.h:37
NSString * callId
定义 NEGroupCallKit.h:39
instancetype sharedInstance()
定义 NEGroupCallKit.m:59