initiateCall()
method.
acceptCall()
method.rejectCall("rejected")
method passing the status as rejected
.
rejectCall("cancelled")
method passing the status as cancelled
.
startCall()
method. Alex in the onIncomingCallReceived()
method of the CallListener
and Bob in the success obtained from the call to acceptCall()
method and both will be connected to each other.
initiateCall()
method sends a call request to a user or a group.
Call
class. The constructor for Call
class takes the following parameters:
Properties | |
---|---|
Parameter | Descriptions |
receiverID | The UID or GUID of the recipient |
receiverType | The type of the receiver viz. - user - group |
callType | The type of the receiver viz. - audio - video |
call
events, you must add protocol conformance CometChatCallDelegate
as Shown Below :
viewDidLoad()
as CometChat.calldelegate = self
As mentioned in the Integration section, Once the call is initiated, there are three options that can be possible:
user
or in any group
in onIncomingCallReceived(incomingCall:, error:)
, you need to accept the call using the acceptCall()
method.
rejectCall()
method.
Properties | |
---|---|
status | Reason for rejection of the call |
sessionID | The unique session ID available in the Call object |
CometChatConstants.callStatus.rejected
as the call is being rejected by the receiver of the call.
rejectCall()
method and just pass the status to the rejectCall()
method as CometChatConstants.callStatus.cancelled
The possible values for the status can be one of the below:
Description | ||
---|---|---|
status | interpretation | Enum available |
rejected | The receiver rejects the call as it is received without accepting the call | .rejected |
cancelled | The initiator ends the call without the receiver accepting the call | .cancelled |
busy | The receiver rejects the call, as he/she is busy on another call | .busy |