Call Features
#
Mute audio in callWhenever you are in the audio/video call, you can able to mute the mic so that receiver don't hear your voice or surrounding noise. In order the use the mute faeture you can utilise the call sdk method below:
Argument | Type | Description |
---|---|---|
MUTE_AUDIO | boolean | Pass true , if you want to disable audio else pass false |
- Swift
- Objective-C
#
Mute video in callWhenever you are in the video call, you can able to turn off the camera so that receiver don't see your video. In order the use the video mute faeture you can utilise the call sdk method below:
Argument | Type | Description |
---|---|---|
MUTE_VIDEO | boolean | Pass true ,if you want to disable audio else pass false |
- Swift
- Objective-C
#
Check mute status of user in callAt any time in call, you can able to check the audio/video mute status of the end user in call.
To check the audio
muted status, call the below method:
Argument | Type | Description |
---|---|---|
END_USERID | String | UserId of the end call user |
- Swift
- Objective-C
To check the video
muted status, call the below method:
Argument | Type | Description |
---|---|---|
END_USERID | String | UserId of the end call user |
- Swift
- Objective-C
#
Audio device typesCall SDK provides the audio devices as an enum class OutputType
, using which audio routing can be manipulated.
Device Type | Description |
---|---|
OutputType.receiver | Device receiver |
OutputType.speaker | Device Speaker |
OutputType.headset | Wired Headset |
OutputType.bluetooth | Wireless Bluetooth |
warning
A valid audio mp3 file with namefly_call_ringtone.mp3
should be placed in the root of the project.
This file will be used to play the ringing tone while making a call.
#
Listen to Audio Device ChangesTo observe the changes in audio routing confirm to the protocol AudioManagerDelegate
.
- Swift
- Objective-C
Argument | Type | Description |
---|---|---|
DEVICE_NAME | String | Name of the device in which the audio is currently routed to |
AUDIO_DEVICE_TYPE | OutputType | Audio device type |
#
Route audio via another deviceTo route audio to another output device, call the below method and pass the device of your choice.
- Swift
- Objective-C
Argument | Type | Description |
---|---|---|
AUDIO_DEVICE_TYPE | OutputType | Audio device type |
FORCE | Bool | if true routed to the audio device |
Note : FORCE only has effect while audio device is set to speaker else it has no valid use case.
#
Auto route audioTo route audio to available audio device call the below method
- Swift
- Objective-C
Argument | Type | Description |
---|---|---|
PREFERRED_AUDIO_DEVICE | OutputType | Audio device type |
Note : If the passed PREFERRED_AUDIO_DEVICE isn't available the SDK will automatically route the audio to the appropriate audio device.
#
Get the currently selectedBy calling the below method will trigger the delegate AudioManagerDelegate
through which we can detect the current audio device through which
audio is routed to.
- Swift
- Objective-C
Note: whenever you are connected to bluetooth headset while using sdk call, if the gsm call arrives and if you attends it then gsm call will take priority for the bluetooth headset.so, even if you disconnect the gsm call, bluetooth headset will not connect back to the sdk call.
#
Switching between camera in video callWhenever you are in video call, you can able to switch between camera's by using the below method.
- Swift
- Objective-C
#
switch audio call to video callWhenever you are in one to one audio call, you can able to switch to video call by using the below method.
- Swift
- Objective-C
#
Handling audio call to video call switch requestsIn your call activity, which you have given to the sdk using the CallManager.setCallActivityClass()
you need to check the below boolean flag in onCreate()
as well as in onNewIntent()
lifecycle callbacks.
- Swift
- Objective-C
If the above method returns true
, you may need to show call switch requesting dialog with ACCEPT and REJECT buttons.
if the user accepts
call switch then you need to call the below method to notify the call switch requested user.
- Swift
- Objective-C
If the user rejects
call switch then you need to call the below method to notify the call switch requested user.
- Swift
- Objective-C
#
Getting call logs from the sdkCall sdk keeps a local db for storing call logs which inlcudes all types of call logs with required information for the each and every call log. you can able to retrieve the call logs by using the below sdk method.
- Swift
- Objective-C
Note : To get a call logs of respective page, pass the page number
pageNumber
parameter.
#
Getting missed call countCall sdk keeps a local db for storing missed call logs with required information for the each and every call log. you can able to retrieve the missed call count by using the below sdk method.
- Swift
- Objective-C
Note : To get instant unread missed call count use
FlyDefaults.unreadMissedCallCount
.
#
Delete call logsCall sdk keeps a local db for storing call logs which inlcudes all types of call logs with required information for the each and every call log. you can able to delete single or all call log by using the below sdk method.
- Swift
- Objective-C
Argument | Type | Description |
---|---|---|
IS_CLEAR_ALL | Bool | Pass true for clear all logs else false |
CALL_LOG_ID | [String] | Ids of the call log |
Note : To delete a single call log, pass the id of the call log in
callLogId
parameter, to delete all call log pass latest call log Id.
#
Sync all call logsCall sdk keeps a local db for storing call logs which inlcudes all types of call logs with required information for the each and every call log. you can able to Sync all call log to Api by using the below sdk method.
- Swift
- Objective-C