NEMeetingKit V4.9.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,
28 NEMeetingInfo *info);
29
35typedef void (^NEMenuStateController)(BOOL transition, _Nullable id extra);
36
40@protocol NEMeetingStatusListener <NSObject>
41
46- (void)onMeetingStatusChanged:(NEMeetingEvent *)event;
47
48@end
49
53@protocol NEMeetingOnInjectedMenuItemClickListener <NSObject>
54
63- (void)onInjectedMenuItemClick:(NEMenuClickInfo *)clickInfo
64 meetingInfo:(NEMeetingInfo *)meetingInfo
65 stateController:(NEMenuStateController)stateController;
66
67@end
68
73@protocol MeetingServiceListener <NSObject>
74
75@optional
76
81- (void)onMeetingStatusChanged:(NEMeetingEvent *)event;
82
88- (void)onInjectedMenuItemClick:(NEMeetingMenuItem *)menuItem
89 meetingInfo:(NEMeetingInfo *)meetingInfo
90 DEPRECATED_MSG_ATTRIBUTE("use onInjectedMenuItemClick:meetingInfo:stateController: instead");
91
100- (void)onInjectedMenuItemClick:(NEMenuClickInfo *)clickInfo
101 meetingInfo:(NEMeetingInfo *)meetingInfo
102 stateController:(NEMenuStateController)stateController;
103
104@end
105
110@interface NEMeetingService : NSObject
111
120- (void)startMeeting:(NEStartMeetingParams *)param
121 opts:(nullable NEStartMeetingOptions *)opts
122 callback:(NECallback)callback;
123
132- (void)joinMeeting:(NEJoinMeetingParams *)param
133 opts:(nullable NEJoinMeetingOptions *)opts
134 callback:(NECallback)callback;
135
144- (void)anonymousJoinMeeting:(NEJoinMeetingParams *)param
145 opts:(nullable NEJoinMeetingOptions *)opts
146 callback:(NECallback)callback;
147
157- (void)minimizeCurrentMeeting:(NECallback)callback;
158
162- (BOOL)returnToMeeting;
163
167- (void)fullscreenCurrentMeeting:(NECallback)callback;
168
177- (void)leaveCurrentMeeting:(BOOL)closeIfHost callback:(NECallback)callback;
178
184- (void)setOnInjectedMenuItemClickListener:(id<NEMeetingOnInjectedMenuItemClickListener>)listener;
185
192- (void)updateInjectedMenuItem:(NEMeetingMenuItem *)item callback:(NECallback)callback;
193
201
207
213- (void)getCurrentMeetingInfo:(NEMeetingInfoCallback)callback;
214
219- (void)addListener:(id<MeetingServiceListener>)listener
220 DEPRECATED_MSG_ATTRIBUTE("deprecated in 4.6.0, use addMeetingStatusListener: instead");
221
226- (void)addMeetingStatusListener:(id<NEMeetingStatusListener>)listener;
227
232- (void)removeListener:(id<MeetingServiceListener>)listener
233 DEPRECATED_MSG_ATTRIBUTE("deprecated in 4.6.0, use removeMeetingStatusListener: instead");
234
239- (void)removeMeetingStatusListener:(id<NEMeetingStatusListener>)listener;
240
241@end
242
243NS_ASSUME_NONNULL_END
NEMeetingStatus
定义 NEMeetingEvent.h:12
void(^ NECallback)(NSInteger resultCode, NSString *resultMessage, id resultData)
定义 NEMeetingKitDefine.h:17
void(^ NEMenuStateController)(BOOL transition, _Nullable id extra)
定义 NEMeetingService.h:35
NS_ASSUME_NONNULL_BEGIN typedef void(^ NEMeetingInfoCallback)(NSInteger resultCode, NSString *resultMsg, NEMeetingInfo *info)
定义 NEMeetingOptions.h:469
定义 NEMeetingParams.h:132
定义 NEMeetingEvent.h:145
定义 NEMeetingInfo.h:83
定义 NEMeetingMenuItem.h:318
定义 NEMeetingService.h:111
NEMeetingStatus getMeetingStatus()
void stopBroadcastExtension()
定义 NEMeetingMenuItem.h:517
定义 NEMeetingOptions.h:439
定义 NEMeetingParams.h:106