directory
pageON THIS PAGE

API for call invitation

you can call invitation series API by ZegoUIKitPrebuiltCallInvitationService().function()

send

Copy

This function is used to send call invitations to invitees.

  • invitees: You can provide a list of target users invitees and specify whether it is a video call isVideoCall. If it is not a video call, it defaults to an audio call.

  • customData: You can also pass additional custom data customData to the invitees.

  • callID: you can specify the call ID callID. 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, set resourceID 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&notificationMessage:You can set the notification title and message.

Note that this function behaves the same as ZegoSendCallInvitationButton.

cancel

Copy

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

Copy

This function is used to reject current call invitations, and you can pass the reason to the caller by additional custom data customData.

accept

Copy

This function is used to accept current call invitations, and you can pass the reason to the caller by additional custom data customData.

pageON THIS PAGE
backBack to top