API for call invitation
you can call invitation series API by ZegoUIKitPrebuiltCallInvitationService().function()
send
This function is used to send call invitations to invitees.
-
invitees
: You can provide a list of target usersinvitees
and specify whether it is a video callisVideoCall
. If it is not a video call, it defaults to an audio call. -
customData
: You can also pass additional custom datacustomData
to the invitees. -
callID
: you can specify the call IDcallID
. If not provided, the system will generate one automatically based on certain rules. -
resourceID
: If you want to set a ringtone for offline call invitations, setresourceID
to a value that matches the push resource ID in the ZEGOCLOUD management console. -
timeoutSeconds
: If the call times out, the call will automatically hang up after the specified timeout duration(in seconds). -
notificationTitle
¬ificationMessage
:You can set the notification title and message.
Note that this function behaves the same as ZegoSendCallInvitationButton
.
cancel
This function is used to cancel call invitations that have already been sent out to callees
. And you can pass the reason to the callees
by additional custom data customData
.
reject
This function is used to reject current call invitations, and you can pass the reason to the caller
by additional custom data customData
.
accept
This function is used to accept current call invitations, and you can pass the reason to the caller
by additional custom data customData
.