Other call features
Fetching Participants list#
In order to fetch all the participants in the call, use below method
- Swift
- Objective-C
[String] returns the list of UserId
Fetching Participants list with Call Status#
To fetch the participants in the call with their call status, use below method
- Swift
- Objective-C
callStatus value will be anyone of the values of annotation class CallStatus.
| callStatus Value | Call event |
|---|---|
| CallStatus.CALLING | the initial state of the call |
| CallStatus.CONNECTING | The current call is in connecting state |
| CallStatus.RINGING | the remote user is having internet and acknowledged the call |
| CallStatus.ATTENDED | the user attended call and UI can be presented with the users in the call |
| CallStatus.CONNECTED | the call is successfully connected and audio/video tracks transmission is about to start |
| CallStatus.DISCONNECTED | the call is disconnected and call UI can be closed |
| CallStatus.RECONNECTING | the call is in reconnecting state |
| CallStatus.RECONNECTED | the call is connected back after a reconnecting state |
| CallStatus.ON_HOLD | the remote user has put your call on hold, it will happedn when the remote user attended gsm call |
| CallStatus.ON_RESUME | the remote user has resumed your call after a on hold, it will happen when the remote user disconnected gsm call |
| CallStatus.CALL_TIME_OUT | when we don't receive ack for the outgoing call from the remote user within 30 seconds, When we don't receive ack for the incoming call from the caller within 30 seconds, When we don't receive ack for the call invite from the invited user within 30 seconds |
Fetching Call Connected list#
To fetch the connected users in the call, use below method
- Swift
- Objective-C
[String] returns the list of UserId
Fetching Call Users list in Ringing status#
To fetch the users in the ringing state of the call, use below method
- Swift
- Objective-C
[String] returns the list of UserId
Fetching Call connected user#
To fetch the users who are connected in the call, use below method
- Swift
- Objective-C
[String] returns the list of UserId
Fetching Timeout Users list#
To fetch the userslist after timeout, use below method
- Swift
- Objective-C
[String] returns the list of UserId
Fetching Reconnecting Users list#
- Swift
- Objective-C
[String] returns the list of UserId
Check Audio mute status of the UserId#
In order to check the audio mute status of the given UserId, use below method
- Swift
- Objective-C
Bool returns true/false
Check Video mute status of the UserId#
In order to check the video mute status of the given UserId, use below method
- Swift
- Objective-C
Bool returns true/false
Get Call status of the UserId#
In order to get the call status of the given UserId, use below method
- Swift
- Objective-C
callStatus value will be anyone of the values of annotation class CallStatus.
| callStatus Value | Call event |
|---|---|
| CallStatus.CALLING | the initial state of the call |
| CallStatus.CONNECTING | The current call is in connecting state |
| CallStatus.RINGING | the remote user is having internet and acknowledged the call |
| CallStatus.ATTENDED | the user attended call and UI can be presented with the users in the call |
| CallStatus.CONNECTED | the call is successfully connected and audio/video tracks transmission is about to start |
| CallStatus.DISCONNECTED | the call is disconnected and call UI can be closed |
| CallStatus.RECONNECTING | the call is in reconnecting state |
| CallStatus.RECONNECTED | the call is connected back after a reconnecting state |
| CallStatus.ON_HOLD | the remote user has put your call on hold, it will happedn when the remote user attended gsm call |
| CallStatus.ON_RESUME | the remote user has resumed your call after a on hold, it will happen when the remote user disconnected gsm call |
| CallStatus.CALL_TIME_OUT | when we don't receive ack for the outgoing call from the remote user within 30 seconds, When we don't receive ack for the incoming call from the caller within 30 seconds, When we don't receive ack for the call invite from the invited user within 30 seconds |
Get Own userId#
In order to get the own userId which is passed to SDk, use below method
- Swift
- Objective-C
Get Presented root Viewcontroler#
In order to get the viewcontroller from which the call UI is presented, use below method
- Swift
- Objective-C
Get GroupId of the current call#
In order to get the groupId of the ongoing call, use below method
- Swift
- Objective-C
Get callType of the current call#
In order to get the callType of the ongoing call, use below method
- Swift
- Objective-C
CallType value will be anyone of the values of annotation class CallType
| CallType Value | Description |
|---|---|
| CallType.Audio | the call is Audio |
| CallType.Video | the call is Video |
Set callType of the current call#
In order to set the callType of the ongoing call, use below method
- Swift
- Objective-C
CallType value will be anyone of the values of annotation class CallType
| CallType Value | Description |
|---|---|
| CallType.Audio | the call is Audio |
| CallType.Video | the call is Video |
Get CallMode of the current call#
In order to get the callMode of the ongoing call, use below method
- Swift
- Objective-C
CallMode value will be anyone of the values of annotation class CallMode
| CallMode Value | Description |
|---|---|
| CallMode.ONE_TO_ONE | the call is between 2 user |
| CallMode.ONE_TO_MANY | the call is between group of members |
Get CallMode of the current call#
In order to get the callDirection of the ongoing call, use below method
- Swift
- Objective-C
CallDirection value will be anyone of the values of annotation class CallDirection
| CallDirection Value | Description |
|---|---|
| CallDirection.Incoming | the call is a incoming call |
| CallDirection.Outgoing | the call is an outgoing call |
Check Call is Connected#
In order to check the ongoing call is connected with atleast of one user in the call, use below method
- Swift
- Objective-C
Check Call is OneToOne#
In order to check the ongoing call is made between single user, use below method
- Swift
- Objective-C
CallKit App Icon#
In order to show our app icon in CallKit. An icon file named fly_call_app_icon should be placed in the Assets of our main application.
warning
The file name should be fly_call_app_icon, otherwise the sdk considers it as no asset provided and nothing will be shown in CallKit.