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 can be, 1.CometChat.RECEIVER_TYPE.USER 2.CometChat.RECEIVER_TYPE.GROUP |
callType | The type of call can be, 1.CometChat.CALL_TYPE.AUDIO 2.CometChat.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. onCallEndedMessageReceived()
event will receive when you trigger CometChat.endCall(sessionID).
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 |
CometChat.CALL_STATUS.REJECTED
to the rejectCall()
method.
Parameter | Description |
---|---|
sessionID | The unique session ID available in the Call object. |
status | Reason for rejection of the call. |
CometChat.CALL_STATUS.CANCELLED
to the rejectCall()
method.
Parameter | Description |
---|---|
sessionID | The unique session ID available in the Call object. |
status | Reason for rejection of the call. |