SMCallServiceDelegate Protocol Reference

Conforms to NSObject
Declared in SMCallServiceDelegate.h

  useManualAudio required method

If YES, MobileSDK will not initialize the audio unit automatically when an audio track is ready for playout or recording. Instead, applications should call setVoipAudioEnabled. If NO, MobileSDK will initialize the audio unit as soon as an audio track is ready for playout or recording. Default value is NO.

@property (nonatomic) BOOL useManualAudio

Availability

4.3.1

Discussion

If YES, MobileSDK will not initialize the audio unit automatically when an audio track is ready for playout or recording. Instead, applications should call setVoipAudioEnabled. If NO, MobileSDK will initialize the audio unit as soon as an audio track is ready for playout or recording. Default value is NO.

Declared In

SMCallServiceDelegate.h

  voipAudioEnabled required method

This property is only effective if useManualAudio is YES. Represents permission for MobileSDK to initialize the VoIP audio unit. When set to NO, if the VoIP audio unit used by MobileSDK is active, it will be stopped and uninitialized. This will stop incoming and outgoing audio. When set to YES, MobileSDK will initialize and start the audio unit when it is needed (e.g. due to establishing an audio connection). Default value is NO.

@property (nonatomic, getter=isVoipAudioEnabled) BOOL voipAudioEnabled

Availability

4.3.1

Discussion

This property is only effective if useManualAudio is YES. Represents permission for MobileSDK to initialize the VoIP audio unit. When set to NO, if the VoIP audio unit used by MobileSDK is active, it will be stopped and uninitialized. This will stop incoming and outgoing audio. When set to YES, MobileSDK will initialize and start the audio unit when it is needed (e.g. due to establishing an audio connection). Default value is NO.

Declared In

SMCallServiceDelegate.h

– setCallApplication: required method

Set the event handler CallApplicationDelegate for the CallService.

- (void)setCallApplication:(nonnull id<SMCallApplicationDelegate>)app

Parameters

app

CallApplicationDelegate

Availability

2.0.0

Declared In

SMCallServiceDelegate.h

– createOutGoingCall:andCallId:andOriginator:andTerminator:completion: required method

This method is to create outgoing/mobile originated calls

- (void)createOutGoingCall:(nonnull id<SMCallApplicationDelegate>)app andCallId:(nullable NSString *)callId andOriginator:(nonnull SMUriAddress *)originator andTerminator:(nonnull SMUriAddress *)terminator completion:(nonnull void ( ^ ) ( id<SMOutgoingCallDelegate> _Nullable call , SMMobileError *_Nullable error ))callHandler

Parameters

app

delegete of application to return callbacks for call

originator

address of caller

terminator

address of callee

id

of call as string. If it set as null MobileSDK will generate a uniq callId

completion

block

Return Value

call to establish call

Availability

4.1.0

Declared In

SMCallServiceDelegate.h

– createOutGoingCall:andOriginator:andTerminator:completion: required method

This method is to create outgoing/mobile originated calls

- (void)createOutGoingCall:(nonnull id<SMCallApplicationDelegate>)app andOriginator:(nonnull SMUriAddress *)originator andTerminator:(nonnull SMUriAddress *)terminator completion:(nonnull void ( ^ ) ( id<SMOutgoingCallDelegate> _Nullable call , SMMobileError *_Nullable error ))callHandler

Parameters

app

delegete of application to return callbacks for call

originator

address of caller

terminator

address of callee

completion

block

Return Value

call to establish call

Availability

3.1.4

Declared In

SMCallServiceDelegate.h

– createOutGoingCall:andTerminator:completion: required method

This method is to create outgoing/mobile originated calls

- (void)createOutGoingCall:(nonnull id<SMCallApplicationDelegate>)app andTerminator:(nonnull SMUriAddress *)terminator completion:(nonnull void ( ^ ) ( id<SMOutgoingCallDelegate> _Nullable call , SMMobileError *_Nullable error ))callHandler

Parameters

app

delegete of application to return callbacks for call

terminator

address of callee

completion

block

Return Value

call to establish call

Availability

3.1.4

Declared In

SMCallServiceDelegate.h

– createThreeWayCall:firstCallId:secondCallId:completion: required method

This method creates Three Way Call. For now this api just supports to merge two calls.

- (void)createThreeWayCall:(nonnull id<SMCallApplicationDelegate>)app firstCallId:(nonnull NSString *)firstCallId secondCallId:(nonnull NSString *)secondCallId completion:(nonnull void ( ^ ) ( id<SMOutgoingCallDelegate> _Nullable call , SMMobileError *_Nullable error ))callHandler

Parameters

app

delegete of application to return callbacks for call

firstCallId

specifies the first call which will be joined to ThreeWay Call

secondCallId

specifies the second call which will be joined to ThreeWay Call

completion

block

Availability

4.4.8

Declared In

SMCallServiceDelegate.h

– rotateCameraWithOrientation: required method

Rotates camera to specified orientation. Calling this method with parameters UIDeviceOrientationUnknown, UIDeviceOrientationFaceUpand UIDeviceOrientationFaceDown will not cause any changes on the camera.

- (void)rotateCameraWithOrientation:(UIDeviceOrientation)orientation

Parameters

orientation

UIDeviceOrientation value that will be used for camera orientation.

Availability

5.14.0

Declared In

SMCallServiceDelegate.h

– rotateCameraOrientationToPosition: required method

Rotates camera to specified orientation

- (void)rotateCameraOrientationToPosition:(AVCaptureVideoOrientation)orientation

Parameters

orientation

AVCaptureVideoOrientation value that will be used for camera orientation

Availability

2.0.0

Declared In

SMCallServiceDelegate.h

– getActiveCalls required method

Returns the active call objects.

- (nonnull NSArray<id<SMCallDelegate> > *)getActiveCalls

Return Value

Immutable call list

Availability

4.0

Discussion

Returns the active call objects.

Declared In

SMCallServiceDelegate.h