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.
}
});