HyphenateSDK  3.3.0
IEMCallManager.h
1 
15 #import <Foundation/Foundation.h>
16 
17 #import "EMCallOptions.h"
18 #import "EMCallManagerDelegate.h"
19 #import "EMCallBuilderDelegate.h"
20 
21 @class EMError;
22 @class EMCallStream;
23 
31 @protocol IEMCallManager <NSObject>
32 
33 @optional
34 
35 #pragma mark - Delegate
36 
50 - (void)addDelegate:(id<EMCallManagerDelegate>)aDelegate
51  delegateQueue:(dispatch_queue_t)aQueue;
52 
64 - (void)removeDelegate:(id<EMCallManagerDelegate>)aDelegate;
65 
77 - (void)setBuilderDelegate:(id<EMCallBuilderDelegate>)aDelegate;
78 
79 #pragma mark - Options
80 
92 - (void)setCallOptions:(EMCallOptions *)aOptions;
93 
106 
107 #pragma mark - Make and Answer and End
108 
127 - (void)startCall:(EMCallType)aType
128  remoteName:(NSString *)aRemoteName
129  ext:(NSString *)aExt
130  completion:(void (^)(EMCallSession *aCallSession, EMError *aError))aCompletionBlock;
131 
148 - (EMError *)answerIncomingCall:(NSString *)aCallId;
149 
167 - (EMError *)endCall:(NSString *)aCallId
168  reason:(EMCallEndReason)aReason;
169 
170 #pragma mark - EM_DEPRECATED_IOS 3.2.1
171 
186 - (void)startVoiceCall:(NSString *)aUsername
187  completion:(void (^)(EMCallSession *aCallSession, EMError *aError))aCompletionBlock EM_DEPRECATED_IOS(3_1_0, 3_2_0, "Use -[IEMCallManager startCall:remoteName:ext:completion:]");
188 
203 - (void)startVideoCall:(NSString *)aUsername
204  completion:(void (^)(EMCallSession *aCallSession, EMError *aError))aCompletionBlock EM_DEPRECATED_IOS(3_1_0, 3_2_0, "Use -[IEMCallManager startCall:remoteName:ext:completion:]");
205 
206 #pragma mark - EM_DEPRECATED_IOS 3.2.0
207 
219 - (void)pauseVoiceWithSession:(NSString *)aSessionId
220  error:(EMError**)pError EM_DEPRECATED_IOS(3_1_0, 3_1_5, "Use -[EMCallSession pauseVoice]");
221 
233 - (void)resumeVoiceWithSession:(NSString *)aSessionId
234  error:(EMError**)pError EM_DEPRECATED_IOS(3_1_0, 3_1_5, "Use -[EMCallSession resumeVoice]");
235 
247 - (void)pauseVideoWithSession:(NSString *)aSessionId
248  error:(EMError**)pError EM_DEPRECATED_IOS(3_1_0, 3_1_5, "Use -[EMCallSession pauseVideo]");
249 
261 - (void)resumeVideoWithSession:(NSString *)aSessionId
262  error:(EMError**)pError EM_DEPRECATED_IOS(3_1_0, 3_1_5, "Use -[EMCallSession resumeVideo]");
263 
275 - (void)enableAdaptiveBirateStreaming:(BOOL)isAdaptive EM_DEPRECATED_IOS(3_1_0, 3_1_5, "Use -[EMCallOptions videoKbps]");
276 
277 
278 #pragma mark - EM_DEPRECATED_IOS < 3.2.0
279 
297 - (EMCallSession *)makeVoiceCall:(NSString *)aUsername
298  error:(EMError **)pError __deprecated_msg("Use -startVoiceCall:completion:");
299 
317 - (EMError *)markCallSession:(NSString *)aSessionId
318  isSilence:(BOOL)aIsSilence __deprecated_msg("Use -pauseVoiceWithSession:error:");
319 
320 
332 - (void)pauseVoiceTransfer:(NSString *)aSessionId __deprecated_msg("Use -pauseVoiceWithSession:error:");
333 
345 - (void)resumeVoiceTransfer:(NSString *)aSessionId __deprecated_msg("Use -resumeVoiceWithSession:error:");
346 
364 - (EMCallSession *)makeVideoCall:(NSString *)aUsername
365  error:(EMError **)pError __deprecated_msg("Use -startVideoCall:completion:");
366 
378 - (void)pauseVideoTransfer:(NSString *)aSessionId __deprecated_msg("Use -pauseVideoWithSession:error:");
379 
391 - (void)resumeVideoTransfer:(NSString *)aSessionId __deprecated_msg("Use -resumeVideoWithSession:error:");
392 
404 - (void)pauseVoiceAndVideoTransfer:(NSString *)aSessionId __deprecated_msg("Delete");
405 
417 - (void)resumeVoiceAndVideoTransfer:(NSString *)aSessionId __deprecated_msg("Delete");
418 
430 - (void)setVideoAdaptive:(BOOL)aFlag __deprecated_msg("Use -enableAdaptiveBirateStreaming:");
431 
432 
433 @end
Definition: EMCallSession.h:30
Definition: IEMCallManager.h:31
Definition: EMError.h:26
Definition: EMCallBuilderDelegate.h:13
Definition: EMCallOptions.h:20
Definition: EMCallManagerDelegate.h:28
EMCallOptions * getCallOptions()