5#import <Foundation/Foundation.h>
23NS_ASSUME_NONNULL_BEGIN
25@protocol NECallEngineRtcDelegateEx <NSObject>
27- (void)onNERtcEngineVirtualBackgroundSourceEnabled:(BOOL)enabled
28 reason:(NERtcVirtualBackgroundSourceStateReason)reason;
32@protocol NERecordProvider <NSObject>
38@protocol NECallEngineDelegate <NSObject>
63- (void)onVideoAvailable:(BOOL)available userID:(NSString *)userId;
68- (void)onVideoMuted:(BOOL)muted userID:(NSString *)userId;
73- (void)onAudioMuted:(BOOL)muted userID:(NSString *)userId;
77- (void)onLocalAudioMuted:(BOOL)muted;
79#pragma mark - 内部周期回调接口
98@property(nonatomic, weak) id<NERtcEngineMediaStatsObserver>
observer;
120 (nullable
void (^)(NSError *_Nullable error,
NECallInfo *_Nullable callInfo))completion;
124- (void)accept:(nullable
void (^)(NSError *_Nullable error,
131 completion:(nullable
void (^)(NSError *_Nullable error))completion;
138 completion:(nullable
void (^)(NSError *_Nullable))completion;
142- (void)setTimeout:(
int)time;
148- (int)setupLocalView:(nullable UIView *)view;
154- (int)setupRemoteView:(nullable UIView *)view;
159- (int)setupRemoteCanvas:(nullable NERtcVideoCanvas *)canvas;
164- (int)enableLocalVideo:(BOOL)enable;
169- (int)muteLocalVideo:(BOOL)muted;
174- (int)muteLocalAudio:(BOOL)muted;
178- (void)setCallRecordProvider:(nullable
id<NERecordProvider>)provider;
185- (void)setSpeakerphoneOn:(BOOL)enable;
196- (void)addCallDelegate:(
id<NECallEngineDelegate>)delegate;
199- (void)removeCallDelegate:(
id<NECallEngineDelegate>)delegate;
202- (void)setAINSMode:(NERtcAudioAINSMode)mode;
205- (int)startASRCaption:(NERtcASRCaptionConfig *)config;
223- (nullable
NEUserInfo *)getUserWithRtcUid:(uint64_t)rtcUid;
228#pragma mark - 弹出系统来电提示
238 (nullable
void (^)(NSError *_Nullable error,
239 NECallInfo *_Nullable callInfo))acceptCompletion
240 hangupCompletion:(nullable
void (^)(NSError *_Nullable error))hangupCompletion
242 (nullable
void (^)(NSError *_Nullable error, BOOL mute))muteCompletion
243 API_AVAILABLE(ios(17.4));
NERtcCallStatus
通话状态
定义 NECallEngineConsts.h:41
int stopASRCaption()
定义 NECallEngine.m:539
NSTimeInterval timeOutSeconds
单位:秒,IM服务器邀请2分钟后无响应为超时,最大值不超过2分钟。
定义 NECallEngine.h:92
nullable NECallInfo * getCallInfo()
获取当前通话信息
定义 NECallEngine.m:667
NESetupConfig * config
初始化设置
定义 NECallEngine.h:101
id< NERtcEngineDelegateEx > engineDelegate
NERtcEngine 的回调接口,由用户提供
定义 NECallEngine.h:95
NERtcCallStatus callStatus
通话状态
定义 NECallEngine.h:89
id< NERtcEngineMediaStatsObserver > observer
中转NERtcEngine统计回调
定义 NECallEngine.h:98
BOOL isSpeakerphoneOn()
检查扬声器状态启用状态
定义 NECallEngine.m:523
void destroy()
销毁
定义 NECallEngine.m:120
NECallConfig * getCallConfig()
获取当前通话配置
定义 NECallEngine.m:674
ios(17.4 API_AVAILABLE()
取消系统来电提示,仅限 iOS 17.4 及之后系统版本支持 @discussion 仅用于取消当前显示的系统来电提示,内部不做任何逻辑操作。
NSString * getVersion()
版本号
定义 NECallEngine.m:1706
instancetype sharedInstance()
单例
定义 NECallEngine.m:78
void switchCamera()
摄像头前后切换
定义 NECallEngine.m:503
定义 NECallSystemIncomingCallParam.h:22
定义 NECallTypeChangeInfo.h:11