1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
//
// MobileRTCWaitingRoomService.h
// MobileRTC
//
// Created by Zoom Video Communications on 2019/3/6.
// Copyright © 2019 Zoom Video Communications, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
/*!
@class MobileRTCWaitingRoomServiceDelegate
@brief Meeting host enabled the waiting room feature, then the delegate will receive this notification #only for custom UI#.
*/
@protocol MobileRTCWaitingRoomServiceDelegate <NSObject>
@optional
/*!
@class MobileRTCWaitingRoomServiceDelegate
@brief Meeting host enabled the waiting room feature, then the delegate will receive this notification #only for custom UI#.
onWaitingRoomUserJoin: will notify the host someone entery the waiting room.
onWaitingRoomUserLeft: will notify the host someone left from waiting room.
*/
- (void)onWaitingRoomUserJoin:(NSUInteger)userId;
- (void)onWaitingRoomUserLeft:(NSUInteger)userId;
@end
@interface MobileRTCWaitingRoomService : NSObject
/*!
@brief Waiting Room service delegate.
*/
@property (nullable, assign, nonatomic) id<MobileRTCWaitingRoomServiceDelegate> delegate;
/*!
@brief Is this meeting support Waiting Room feature.
@return Yes if support waiting room.
*/
-(BOOL)isSupportWaitingRoom;
/*!
@brief Is this meeting enabled Waiting Room feature.
@return Yes if enabled.
*/
-(BOOL)isWaitingRoomOnEntryFlagOn;
/*!
@brief enable or disable waiting room feature of this meeting.
@return the result of this operation.
*/
- (MobileRTCMeetError)enableWaitingRoomOnEntry:(BOOL)bEnable;
/*!
@brief get the waiting room user id list.
@return waiting room user list.
*/
- (nullable NSArray <NSNumber *> *)waitingRoomList;
/*!
@brief get the user detail information in waiting room.
@return waiting room user information.
*/
- (nullable MobileRTCMeetingUserInfo*)waitingRoomUserInfoByID:(NSUInteger)userId;
/*!
@brief admit the user go to meeting fram waiting room.
@return the result of this operation.
@warning Only meeting host/co-host can run the function.
*/
- (BOOL)admitToMeeting:(NSUInteger)userId;
/*!
@brief put the user to waiting room from meeting.
@return the result of this operation.
@warning Only meeting host/co-host can run the function.
*/
- (BOOL)putInWaitingRoom:(NSUInteger)userId;
@end