iOS/macOS(Objective-C)[v1.7.5.0]
PanoRtcGroupManager.h
浏览该文件的文档.
1
2//
3// PanoRtcGroupManager.h
4// PanoRtc
5//
6// Copyright © 2021 Pano. All rights reserved.
7//
8#import <Foundation/Foundation.h>
9#import "PanoEnumerates.h"
10#import "PanoObjects.h"
11
12NS_ASSUME_NONNULL_BEGIN
13
20@protocol PanoRtcGroupManagerDelegate <NSObject>
21@optional
22
33- (void)onGroupJoinConfirm:(NSString *)groupId result:(PanoResult)result;
34
45- (void)onGroupLeaveIndication:(NSString *)groupId reason:(PanoResult)reason;
46
57- (void)onGroupInviteIndication:(NSString *)groupId userId:(UInt64)userId;
58
69- (void)onGroupDismissConfirm:(NSString *)groupId result:(PanoResult)result;
70
81- (void)onGroupUserJoinIndication:(NSString *)groupId userInfo:(PanoRtcGroupUserInfo *)userInfo;
82
95- (void)onGroupUserLeaveIndication:(NSString *)groupId userId:(UInt64)userId reason:(PanoResult)reason;
96
105- (void)onGroupDefaultUpdateIndication:(NSString *)groupId;
106
117- (void)onGroupObserveConfirm:(NSString *)groupId result:(PanoResult)result;
118
119@end
120
127__attribute__((visibility("default"))) @interface PanoRtcGroupManager : NSObject
128
130+ (instancetype)new NS_UNAVAILABLE;
131
133- (instancetype)init NS_UNAVAILABLE;
134
141@property (weak, nonatomic) id<PanoRtcGroupManagerDelegate> delegate;
142
159- (PanoResult)joinGroup:(NSString *)groupId config:(PanoRtcGroupConfig * _Nullable)config;
160
175- (PanoResult)subscribeGroup:(NSString *)groupId;
176
191- (PanoResult)unsubscribeGroup:(NSString *)groupId;
192
207- (PanoResult)leaveGroup:(NSString *)groupId;
208
225- (PanoResult)inviteGroupUsers:(NSString *)groupId users:(NSArray<NSNumber *> * _Nonnull)users;
226
241- (PanoResult)dismissGroup:(NSString *)groupId;
242
257- (PanoResult)setDefaultGroup:(NSString * _Nullable)groupId;
258
273- (PanoResult)observeGroup:(NSString *)groupId;
288- (PanoResult)unobserveGroup:(NSString *)groupId;
315
316@end
317
318NS_ASSUME_NONNULL_END
PanoResult
返回。
Definition: PanoEnumerates.h:19
用于加入分组的配置类。
Definition: PanoObjects.h:90
RtcGroupManager, 分组服务核心接口
Definition: PanoRtcGroupManager.h:128
instancetype new()
此方法不可用。
instancetype init()
此方法不可用。
id< PanoRtcGroupManagerDelegate > delegate
设置分组服务的代理。
Definition: PanoRtcGroupManager.h:141
PanoResult observeAllGroups()
观察所有分组的事件,包括后续创建的分组。调用成功后可在未加入分组的情况下接收分组事件。
PanoResult unobserveAllGroups()
取消观察所有分组的事件。
分组用户额外信息。
Definition: PanoObjects.h:99
RtcGroupManager 的回调函数,在使用 RtcGroupManager 之前必须要设置回调以获取事件通知。
Definition: PanoRtcGroupManager.h:20