logo
On this page

How to disable toast display for callInviteButton?

2024-05-11
Products / Plugins:Call Kit
Platform / Framework:Android

ZegoSendCallInvitationButton will display some error toasts by default. You can disable toasts in the following way:

ZegoSendCallInvitationButton callInviteButton;

// ...

callInviteButton.showErrorToast(false);
callInviteButton.setOnClickListener(new ClickListener() {
    @Override
    public void onClick(int errorCode, String errorMessage, List<ZegoCallUser> errorInvitees) {
        // Add your custom request result logic. 0 indicates successful request sending, other values indicate failure. When errorCode is 0, there may still be some error invitees. Please check if all invitees received successfully.
    }
});

Previous

When using ZegoEffects in the custom preprocessing feature of RTC, the preview and published stream show a black screen. How to handle this?

Next

Can I implement an audio-only call scenario using the Video Call SDK?