NEMeetingKit V4.8.0
载入中...
搜索中...
未找到
NEMeetingService.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 "NEMeetingEvent.h"
7#import "NEMeetingInfo.h"
9#import "NEMeetingRecord.h"
10
15@class NEMeetingEvent;
17@class NEMenuClickInfo;
18
19NS_ASSUME_NONNULL_BEGIN
20
27typedef void (^NEMeetingInfoCallback)(NSInteger resultCode, NSString *resultMsg, NEMeetingInfo *info);
28
34typedef void (^NEMenuStateController)(BOOL transition, _Nullable id extra);
35
39@protocol NEMeetingStatusListener <NSObject>
40
45- (void)onMeetingStatusChanged:(NEMeetingEvent *)event;
46
47@end
48
52@protocol NEMeetingOnInjectedMenuItemClickListener <NSObject>
53
62- (void)onInjectedMenuItemClick:(NEMenuClickInfo *)clickInfo meetingInfo:(NEMeetingInfo *)meetingInfo stateController:(NEMenuStateController)stateController;
63
64@end
65
70@protocol MeetingServiceListener <NSObject>
71
72@optional
73
78- (void)onMeetingStatusChanged:(NEMeetingEvent *)event;
79
85- (void)onInjectedMenuItemClick:(NEMeetingMenuItem *)menuItem meetingInfo:(NEMeetingInfo *)meetingInfo DEPRECATED_MSG_ATTRIBUTE("use onInjectedMenuItemClick:meetingInfo:stateController: instead");
86
95- (void)onInjectedMenuItemClick:(NEMenuClickInfo *)clickInfo meetingInfo:(NEMeetingInfo *)meetingInfo stateController:(NEMenuStateController)stateController;
96
97@end
98
103@interface NEMeetingService : NSObject
104
113- (void)startMeeting:(NEStartMeetingParams *)param opts:(nullable NEStartMeetingOptions *)opts callback:(NECallback)callback;
114
123- (void)joinMeeting:(NEJoinMeetingParams *)param opts:(nullable NEJoinMeetingOptions *)opts callback:(NECallback)callback;
124
133- (void)anonymousJoinMeeting:(NEJoinMeetingParams *)param opts:(nullable NEJoinMeetingOptions *)opts callback:(NECallback)callback;
134
144- (void)minimizeCurrentMeeting:(NECallback)callback;
145
149- (BOOL)returnToMeeting;
150
154- (void)fullscreenCurrentMeeting:(NECallback)callback;
155
164- (void)leaveCurrentMeeting:(BOOL)closeIfHost callback:(NECallback)callback;
165
171- (void)setOnInjectedMenuItemClickListener:(id<NEMeetingOnInjectedMenuItemClickListener>)listener;
172
179- (void)updateInjectedMenuItem:(NEMeetingMenuItem *)item callback:(NECallback)callback;
180
188
194
200- (void)getCurrentMeetingInfo:(NEMeetingInfoCallback)callback;
201
206- (void)addListener:(id<MeetingServiceListener>)listener DEPRECATED_MSG_ATTRIBUTE("deprecated in 4.6.0, use addMeetingStatusListener: instead");
207
212- (void)addMeetingStatusListener:(id<NEMeetingStatusListener>)listener;
213
218- (void)removeListener:(id<MeetingServiceListener>)listener DEPRECATED_MSG_ATTRIBUTE("deprecated in 4.6.0, use removeMeetingStatusListener: instead");
219
224- (void)removeMeetingStatusListener:(id<NEMeetingStatusListener>)listener;
225
226@end
227
228NS_ASSUME_NONNULL_END
NEMeetingStatus
Definition NEMeetingEvent.h:12
void(^ NECallback)(NSInteger resultCode, NSString *resultMessage, id resultData)
Definition NEMeetingKitDefine.h:17
void(^ NEMenuStateController)(BOOL transition, _Nullable id extra)
Definition NEMeetingService.h:34
NS_ASSUME_NONNULL_BEGIN typedef void(^ NEMeetingInfoCallback)(NSInteger resultCode, NSString *resultMsg, NEMeetingInfo *info)
Definition NEMeetingOptions.h:439
Definition NEMeetingParams.h:132
Definition NEMeetingEvent.h:145
Definition NEMeetingInfo.h:83
Definition NEMeetingMenuItem.h:303
Definition NEMeetingService.h:104
NEMeetingStatus getMeetingStatus()
void stopBroadcastExtension()
Definition NEMeetingMenuItem.h:502
Definition NEMeetingOptions.h:410
Definition NEMeetingParams.h:106