rejected
.cancelled
.
CallListener
and Bob in the success obtained from the 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:
Parameter | Description |
---|---|
receiverID | The UID or GUID of the recipient |
receiverType | The type of the receiver viz. 1.CometChatConstants.RECEIVER_TYPE_USER 2.CometChatConstants.RECEIVER_TYPE_GROUP |
callType | The type of the call viz. 1.CometChatConstants.CALL_TYPE_AUDIO 2.CometChatConstants.CALL_TYPE_VIDEO |
Call
object is returned with the details of the call including a unique session ID for the call.
CallListener
listener using the addCallListener()
method.
Parametrer | Description |
---|---|
listenerID | An ID that uniquely identifies that listener. We recommend using the activity or fragment name |
acceptCall()
method.
Parameter | Description |
---|---|
sessionID | The unique session ID available in the Call object |
rejectCall()
method.
Parameter | Description |
---|---|
sessionID | The unique session ID available in the Call object |
status | Reason for rejection of the call |
CometChatConstants.CALL_STATUS_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.CALL_STATUS_CANCELLED